diff --git a/kv/mdbx/kv_mdbx.go b/kv/mdbx/kv_mdbx.go index 0876c195c..a5f9489d0 100644 --- a/kv/mdbx/kv_mdbx.go +++ b/kv/mdbx/kv_mdbx.go @@ -206,9 +206,9 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) { } // must be in the range from 12.5% (almost empty) to 50% (half empty) // which corresponds to the range from 8192 and to 32768 in units respectively - //if err = env.SetOption(mdbx.OptMergeThreshold16dot16Percent, 32768); err != nil { - // return nil, err - //} + if err = env.SetOption(mdbx.OptMergeThreshold16dot16Percent, 32768); err != nil { + return nil, err + } } dirtyPagesLimit, err := env.GetOption(mdbx.OptTxnDpLimit)