src/backup/datastore.rs: new helper try_shared_chunk_store_lock()
This commit is contained in:
parent
1e8da0a789
commit
1cf5178ac5
@ -291,6 +291,10 @@ impl DataStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn try_shared_chunk_store_lock(&self) -> Result<tools::ProcessLockSharedGuard, Error> {
|
||||
self.chunk_store.try_shared_lock()
|
||||
}
|
||||
|
||||
pub fn chunk_path(&self, digest:&[u8; 32]) -> (PathBuf, String) {
|
||||
self.chunk_store.chunk_path(digest)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user