From aae301878c6bf1dbb04e9535395147d0edd1afad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Mon, 4 Mar 2019 15:01:38 +0100 Subject: [PATCH] fix: Flush the database after each WriteBatch injected --- src/database/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/database/mod.rs b/src/database/mod.rs index d8b1bea79..70ca62d92 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -267,6 +267,7 @@ impl DatabaseIndex { let batch = update.build()?; self.db.write(batch)?; self.db.compact_range(None, None); + self.db.flush(true)?; let snapshot = Snapshot::new(self.db.clone()); let view = Arc::new(DatabaseView::new(snapshot)?);