diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs index 7aef844c..7e1861ce 100644 --- a/src/backup/datastore.rs +++ b/src/backup/datastore.rs @@ -291,6 +291,10 @@ impl DataStore { Ok(()) } + pub fn try_shared_chunk_store_lock(&self) -> Result { + self.chunk_store.try_shared_lock() + } + pub fn chunk_path(&self, digest:&[u8; 32]) -> (PathBuf, String) { self.chunk_store.chunk_path(digest) }