mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +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()
|
||||
}
|
||||
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 {
|
||||
opts = opts.GrowthStep(16 * datasize.MB)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user