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

Method execute_and_record_effect

atomic-repository/src/repository/adoption.rs:1529–1540  ·  view source on GitHub ↗

Execute one planned filesystem effect and append its leased receipt.

(
        &self,
        operation_lock: &WorkingCopyOperationLockGuard,
        operation_id: atomic_core::OperationId,
        ordinal: u32,
        content: Option<&[u8]>,
    )

Source from the content-addressed store, hash-verified

1527
1528 /// Execute one planned filesystem effect and append its leased receipt.
1529 pub(super) fn execute_and_record_effect(
1530 &self,
1531 operation_lock: &WorkingCopyOperationLockGuard,
1532 operation_id: atomic_core::OperationId,
1533 ordinal: u32,
1534 content: Option<&[u8]>,
1535 ) -> Result<(), RepositoryError> {
1536 let pending =
1537 self.execute_filesystem_effect(operation_lock, operation_id, ordinal, content)?;
1538 self.record_pending_filesystem_effect(operation_lock, operation_id, pending)?;
1539 Ok(())
1540 }
1541
1542 /// R2: prove the pre-adoption worktree state before any mutation, and
1543 /// return the proven per-path observations.

Callers 2

execute_shim_cutoverMethod · 0.80

Tested by

no test coverage detected