mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08: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…
Reference in New Issue
Block a user