mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
add lock to prevent snapshot during update
This commit is contained in:
parent
520f7c09ba
commit
7f6a54cb12
3 changed files with 46 additions and 16 deletions
|
@ -52,6 +52,7 @@ impl<B> SnapshotService<B> {
|
|||
let uuids = self.uuid_resolver_handle.snapshot(temp_snapshot_path.clone()).await?;
|
||||
for uuid in uuids {
|
||||
self.update_handle.snapshot(uuid, temp_snapshot_path.clone()).await?;
|
||||
println!("performed snapshot for index {}", uuid);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue