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

Method try_lock_common_operation

atomic-repository/src/repository/locks.rs:319–323  ·  view source on GitHub ↗

Try to enter the repository-common operation scope without blocking. The returned guard is the migration target for the legacy shadow lock; callers that also touch a physical working copy must advance through [`RepositoryCommonLockGuard::try_lock_working_copy`].

(
        &self,
    )

Source from the content-addressed store, hash-verified

317 /// callers that also touch a physical working copy must advance through
318 /// [`RepositoryCommonLockGuard::try_lock_working_copy`].
319 pub(super) fn try_lock_common_operation(
320 &self,
321 ) -> Result<RepositoryCommonLockGuard, RepositoryError> {
322 self.try_lock_common_operation_with_reentrancy(false)
323 }
324
325 pub(super) fn try_lock_common_operation_with_reentrancy(
326 &self,