mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
erigon init: created db with wrong pageSize (#7482)
This commit is contained in:
parent
f23612bdfe
commit
b84561c163
@ -313,7 +313,12 @@ func OpenDatabase(config *nodecfg.Config, label kv.Label) (kv.RwDB, error) {
|
|||||||
opts = opts.Exclusive()
|
opts = opts.Exclusive()
|
||||||
}
|
}
|
||||||
if label == kv.ChainDB {
|
if label == kv.ChainDB {
|
||||||
opts = opts.PageSize(config.MdbxPageSize.Bytes()).MapSize(config.MdbxDBSizeLimit)
|
if config.MdbxPageSize.Bytes() > 0 {
|
||||||
|
opts = opts.PageSize(config.MdbxPageSize.Bytes())
|
||||||
|
}
|
||||||
|
if config.MdbxDBSizeLimit > 0 {
|
||||||
|
opts = opts.MapSize(config.MdbxDBSizeLimit)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
opts = opts.GrowthStep(16 * datasize.MB)
|
opts = opts.GrowthStep(16 * datasize.MB)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user