Drain the transaction overlay (#11654)

This commit is contained in:
David
2020-04-27 13:51:39 +02:00
committed by GitHub
parent f9633e69fe
commit 114074c939

View File

@@ -435,6 +435,12 @@ impl StateRebuilder {
}
}
let backing = self.db.backing().clone();
let mut batch = backing.transaction();
// Drain the transaction overlay and put the data into the batch.
self.db.inject(&mut batch)?;
backing.write_buffered(batch);
Ok(())
}