mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix: Flush the database after each WriteBatch injected
This commit is contained in:
parent
383a49b44f
commit
aae301878c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue