mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-25 06:00:08 +01:00
fix: Flush the database after each WriteBatch injected
This commit is contained in:
parent
383a49b44f
commit
aae301878c
@ -267,6 +267,7 @@ impl DatabaseIndex {
|
|||||||
let batch = update.build()?;
|
let batch = update.build()?;
|
||||||
self.db.write(batch)?;
|
self.db.write(batch)?;
|
||||||
self.db.compact_range(None, None);
|
self.db.compact_range(None, None);
|
||||||
|
self.db.flush(true)?;
|
||||||
|
|
||||||
let snapshot = Snapshot::new(self.db.clone());
|
let snapshot = Snapshot::new(self.db.clone());
|
||||||
let view = Arc::new(DatabaseView::new(snapshot)?);
|
let view = Arc::new(DatabaseView::new(snapshot)?);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user