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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

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(())
}