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

Method commit

atomic-repository/src/repository/locks.rs:460–464  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

458
459impl CommonPristineWriteTxn<'_> {
460 pub(super) fn commit(self) -> Result<(), RepositoryError> {
461 self.txn
462 .commit()
463 .map_err(|error| RepositoryError::Database(error.to_string()))
464 }
465
466 /// Discard the transaction: no journal entry and no table mutation.
467 pub(super) fn abort(self) -> Result<(), RepositoryError> {

Calls

no outgoing calls