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

Method write_txn_immediate

atomic-core/src/pristine/txn/pristine.rs:724–726  ·  view source on GitHub ↗

Begin a repair write transaction with immediate durability. Immediate durability fsyncs the commit before returning, which is appropriate for destructive derived-index replacement.

(&self)

Source from the content-addressed store, hash-verified

722 /// Immediate durability fsyncs the commit before returning, which is
723 /// appropriate for destructive derived-index replacement.
724 pub fn write_txn_immediate(&self) -> PristineResult<WriteTxn<'_>> {
725 self.write_txn_with_durability(redb::Durability::Immediate)
726 }
727
728 fn write_txn_with_durability(
729 &self,

Calls 1