mdbx: print in logs - real limit (#8910)

This commit is contained in:
Alex Sharov 2023-12-06 15:46:05 +07:00 committed by GitHub
parent e11e374f8b
commit 7335dccc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,8 +305,11 @@ func (opts MdbxOpts) Open(ctx context.Context) (kv.RwDB, error) {
}
opts.pageSize = uint64(in.PageSize)
opts.mapSize = datasize.ByteSize(in.MapSize)
if opts.label == kv.ChainDB {
opts.log.Info("[db] chaindata", "sizeLimit", opts.mapSize, "pageSize", opts.pageSize)
opts.log.Info("[db] open", "lable", opts.label, "sizeLimit", opts.mapSize, "pageSize", opts.pageSize)
} else {
opts.log.Debug("[db] open", "lable", opts.label, "sizeLimit", opts.mapSize, "pageSize", opts.pageSize)
}
// erigon using big transactions