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

Method begin_write

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

Source from the content-addressed store, hash-verified

426 /// as operation-level contention control.
427 #[cfg(test)]
428 pub(super) fn begin_write(&self) -> Result<OrderedPristineWriteTxn<'_>, RepositoryError> {
429 let txn = self
430 .common
431 .pristine
432 .write_txn()
433 .map_err(|error| RepositoryError::Database(error.to_string()))?;
434 Ok(OrderedPristineWriteTxn {
435 txn,
436 operation: self,
437 })
438 }
439
440 /// Begin an immediately durable pristine write after both operation locks.
441 ///

Calls 1

write_txnMethod · 0.80