Unverified Commit 713fc8bb authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub

ethdb/pebble: fsync for batch writes (#27522)

This is likely the culprit behind several data corruption issues, e.g. where data has been
written to the freezer, but the deletion from pebble does not go through due to process
crash.
parent 6d2aeb43
......@@ -535,7 +535,7 @@ func (b *batch) Write() error {
if b.db.closed {
return pebble.ErrClosed
}
return b.b.Commit(pebble.NoSync)
return b.b.Commit(pebble.Sync)
}
// Reset resets the batch for reuse.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment