Skip to content

Commit

Permalink
ethdb/pebble: use sync mode for pebble writes (#27615)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Jun 27, 2023
1 parent b4bc9b0 commit 4b90c44
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 4b90c44

Please sign in to comment.