MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / begin_write_immediate

Method begin_write_immediate

atomic-repository/src/repository/locks.rs:393–401  ·  view source on GitHub ↗

Begin an immediately durable pristine write after the common lock. Repository-scoped operations use this stage when no physical working-copy or final shelf/deferred-tree resource participates in the mutation.

(
        &self,
    )

Source from the content-addressed store, hash-verified

391 /// Repository-scoped operations use this stage when no physical working-copy
392 /// or final shelf/deferred-tree resource participates in the mutation.
393 pub(super) fn begin_write_immediate(
394 &self,
395 ) -> Result<CommonPristineWriteTxn<'_>, RepositoryError> {
396 let txn = self
397 .pristine
398 .write_txn_immediate()
399 .map_err(|error| RepositoryError::Database(error.to_string()))?;
400 Ok(CommonPristineWriteTxn { txn, _common: self })
401 }
402
403 /// Advance from the common lock to one working-copy lock without blocking.
404 pub(super) fn try_lock_working_copy(

Calls 1

write_txn_immediateMethod · 0.80