mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
node: do not double-wrap KV stores (#32089)
For no apparent reason, KV stores were getting wrapped in `nofreezedb` first and then in `freezerdb`.
This commit is contained in:
parent
8e17b371fd
commit
aa1de05720
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
|
return nil, err
|
||||||
}
|
}
|
||||||
log.Info("Using LevelDB as the backing database")
|
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
|
// 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return rawdb.NewDatabase(db), nil
|
return db, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue