Mdbx reduce augment limit to 8*default (#134)

This commit is contained in:
Alex Sharov 2021-10-27 13:17:11 +07:00 committed by GitHub
parent 750239d977
commit b11097448f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) {
} }
if opts.augumentLimit == 0 { if opts.augumentLimit == 0 {
opts.augumentLimit = 32 * 1024 * 1024 // mdbx's default 256 * 1024 opts.augumentLimit = 8 * 256 * 1024 // mdbx's default 256 * 1024
} }
if err = env.SetOption(mdbx.OptRpAugmentLimit, opts.augumentLimit); err != nil { if err = env.SetOption(mdbx.OptRpAugmentLimit, opts.augumentLimit); err != nil {
return nil, err return nil, err