ethdb/pebble: use consistent write option for pebble update

This commit is contained in:
will@2012 2024-02-28 20:34:10 +08:00
parent 49623bd469
commit 7c87f6bcd6

View file

@ -322,7 +322,7 @@ func (d *Database) Delete(key []byte) error {
if d.closed { if d.closed {
return pebble.ErrClosed return pebble.ErrClosed
} }
return d.db.Delete(key, nil) return d.db.Delete(key, d.writeOptions)
} }
// NewBatch creates a write-only key-value store that buffers changes to its host // NewBatch creates a write-only key-value store that buffers changes to its host