Skip to content

Commit

Permalink
Mdbx reduce augment limit to 8*default (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Oct 27, 2021
1 parent 750239d commit b110974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kv/mdbx/kv_mdbx.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) {
}

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 {
return nil, err
Expand Down

0 comments on commit b110974

Please sign in to comment.