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

Method try_lock_shelf

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

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

(self)

Source from the content-addressed store, hash-verified

500impl<'a> OrderedPristineWriteTxn<'a> {
501 /// Acquire the working-copy shelf lock after entering the write stage.
502 pub(super) fn try_lock_shelf(self) -> Result<FinalResourceWriteTxn<'a>, RepositoryError> {
503 self.try_lock_final_resource(FinalResource::Shelf)
504 }
505
506 /// Acquire the repository deferred-tree lock after entering the write stage.
507 pub(super) fn try_lock_deferred_tree(

Calls 1