You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Put inserts the given value into the key-value store.func (db*Database) Put(key []byte, value []byte) error {
returndb.db.Put(key, value, nil)
}
PebbleDB write option in ethdb/pebble/pebble.go:
// Put inserts the given value into the key-value store.func (d*Database) Put(key []byte, value []byte) error {
d.quitLock.RLock()
deferd.quitLock.RUnlock()
ifd.closed {
returnpebble.ErrClosed
}
returnd.db.Set(key, value, d.writeOptions)
}
The option is not specified in leveldb engine, the default writing mode is async, And the option is specified in pebble engine, the default writing mode is sync. Please correct me if I understand wrong.
The text was updated successfully, but these errors were encountered:
Leveldb was kind of left in for legacy purposes until everyone migrates over to Pebble. Whilst there's no particular reason to forcefully drop LevelDB, we also stopped maintaining it. The upstream project (go-leveldb) was abandoned, the latest upstream code is unstable, they stopped accepting out fixes. At this point we just can't really care about it any more.
LevelDB write option in
ethdb/leveldb/leveldb.go
:PebbleDB write option in
ethdb/pebble/pebble.go
:The option is not specified in leveldb engine, the default writing mode is async, And the option is specified in pebble engine, the default writing mode is sync. Please correct me if I understand wrong.
The text was updated successfully, but these errors were encountered: