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

Method operation_lock

atomic-repository/src/repository/workspace_txn.rs:482–484  ·  view source on GitHub ↗

The ordered operation lock this transaction holds. Journaled repository mutations executed inside the transaction reuse this guard instead of acquiring a second lock set, preserving the common → working-copy → pristine → final-resource order.

(&self)

Source from the content-addressed store, hash-verified

480 /// this guard instead of acquiring a second lock set, preserving the
481 /// common → working-copy → pristine → final-resource order.
482 pub(super) fn operation_lock(&self) -> &WorkingCopyOperationLockGuard {
483 &self._operation_lock
484 }
485
486 /// A same-thread alias of the held common operation lock (CB-10A review
487 /// R6): journaled repository bookkeeping inside this workspace

Calls

no outgoing calls

Tested by

no test coverage detected