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

Method begin_write

atomic-repository/src/repository/locks.rs:453–463  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

451 /// as operation-level contention control.
452 #[cfg(test)]
453 pub(super) fn begin_write(&self) -> Result<OrderedPristineWriteTxn<'_>, RepositoryError> {
454 let txn = self
455 .common
456 .pristine
457 .write_txn()
458 .map_err(|error| RepositoryError::Database(error.to_string()))?;
459 Ok(OrderedPristineWriteTxn {
460 txn,
461 operation: self,
462 })
463 }
464
465 /// Begin an immediately durable pristine write after both operation locks.
466 ///

Calls 1

write_txnMethod · 0.80