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

Method append_receipt_immediate

atomic-repository/src/repository/operation.rs:2804–2814  ·  view source on GitHub ↗
(
        &self,
        operation_lock: &WorkingCopyOperationLockGuard,
        operation: &Operation,
        receipt: &EffectReceipt,
    )

Source from the content-addressed store, hash-verified

2802 }
2803
2804 pub(super) fn append_receipt_immediate(
2805 &self,
2806 operation_lock: &WorkingCopyOperationLockGuard,
2807 operation: &Operation,
2808 receipt: &EffectReceipt,
2809 ) -> Result<(), RepositoryError> {
2810 self.validate_operation_lock(operation_lock, operation)?;
2811 let mut txn = operation_lock.begin_write_immediate()?;
2812 txn.append_effect_receipt(receipt).map_err(pristine_error)?;
2813 txn.commit()
2814 }
2815
2816 fn preflight_filesystem_leases(
2817 &self,

Callers 4

record_effect_outcomeMethod · 0.80

Calls 4

begin_write_immediateMethod · 0.80
append_effect_receiptMethod · 0.80
commitMethod · 0.45

Tested by

no test coverage detected