mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
feat: re-export rocksdb snapshot function
This commit is contained in:
parent
3712fa7c24
commit
5bc5185ac5
@ -121,4 +121,11 @@ impl Database {
|
||||
pub fn common_index(&self) -> Arc<CommonIndex> {
|
||||
self.common.clone()
|
||||
}
|
||||
|
||||
pub fn checkpoint_to<P>(&self, path: P) -> Result<(), Error>
|
||||
where P: AsRef<Path>,
|
||||
{
|
||||
let checkpoint = rocksdb::checkpoint::Checkpoint::new(&self.inner)?;
|
||||
Ok(checkpoint.create_checkpoint(path)?)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user