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

Method try_lock_shelf

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

Acquire the working-copy shelf lock after entering the write stage.

(self)

Source from the content-addressed store, hash-verified

475impl<'a> OrderedPristineWriteTxn<'a> {
476 /// Acquire the working-copy shelf lock after entering the write stage.
477 pub(super) fn try_lock_shelf(self) -> Result<FinalResourceWriteTxn<'a>, RepositoryError> {
478 self.try_lock_final_resource(FinalResource::Shelf)
479 }
480
481 /// Acquire the repository deferred-tree lock after entering the write stage.
482 pub(super) fn try_lock_deferred_tree(

Calls 1