mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/rawdb: set freezerdb.readOnly to prevent Freeze deadlock in read-only mode
This commit is contained in:
parent
cfa3b96103
commit
5a09dfa8d7
1 changed files with 1 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ func Open(db ethdb.KeyValueStore, opts OpenOptions) (ethdb.Database, error) {
|
|||
}()
|
||||
}
|
||||
return &freezerdb{
|
||||
readOnly: opts.ReadOnly,
|
||||
ancientRoot: opts.Ancient,
|
||||
KeyValueStore: db,
|
||||
chainFreezer: frdb,
|
||||
|
|
|
|||
Loading…
Reference in a new issue