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

Method begin_write_immediate

atomic-repository/src/repository/locks.rs:368–376  ·  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

366 /// Repository-scoped operations use this stage when no physical working-copy
367 /// or final shelf/deferred-tree resource participates in the mutation.
368 pub(super) fn begin_write_immediate(
369 &self,
370 ) -> Result<CommonPristineWriteTxn<'_>, RepositoryError> {
371 let txn = self
372 .pristine
373 .write_txn_immediate()
374 .map_err(|error| RepositoryError::Database(error.to_string()))?;
375 Ok(CommonPristineWriteTxn { txn, _common: self })
376 }
377
378 /// Advance from the common lock to one working-copy lock without blocking.
379 pub(super) fn try_lock_working_copy(

Calls 1

write_txn_immediateMethod · 0.80