Skip to content

Commit

Permalink
ethdb/pebble: use sync mode for pebble writes (ethereum#27615)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 authored and MoonShiesty committed Aug 30, 2023
1 parent 31c387b commit 75efde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethdb/pebble/pebble.go
Expand Up @@ -279,7 +279,7 @@ func (d *Database) Put(key []byte, value []byte) error {
if d.closed {
return pebble.ErrClosed
}
return d.db.Set(key, value, pebble.NoSync)
return d.db.Set(key, value, pebble.Sync)
}

// Delete removes the key from the key-value store.
Expand Down

0 comments on commit 75efde7

Please sign in to comment.