mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
node: do not double wrap KV stores
For no apparent reason, KV stores were getting wrapped in nofreezedb first and then in freezerdb.
This commit is contained in:
parent
6eab053088
commit
03cecc0c1a
1 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r
|
|||
return nil, err
|
||||
}
|
||||
log.Info("Using LevelDB as the backing database")
|
||||
return rawdb.NewDatabase(db), nil
|
||||
return db, nil
|
||||
}
|
||||
|
||||
// newPebbleDBDatabase creates a persistent key-value database without a freezer
|
||||
|
|
@ -119,5 +119,5 @@ func newPebbleDBDatabase(file string, cache int, handles int, namespace string,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return rawdb.NewDatabase(db), nil
|
||||
return db, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue