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

Method commit

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

Source from the content-addressed store, hash-verified

483
484impl CommonPristineWriteTxn<'_> {
485 pub(super) fn commit(self) -> Result<(), RepositoryError> {
486 self.txn
487 .commit()
488 .map_err(|error| RepositoryError::Database(error.to_string()))
489 }
490
491 /// Discard the transaction: no journal entry and no table mutation.
492 pub(super) fn abort(self) -> Result<(), RepositoryError> {

Calls

no outgoing calls