From d814adb13e7900b613801caec340c4738b78f263 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Thu, 3 Feb 2022 16:28:43 +0700 Subject: [PATCH] save --- kv/mdbx/kv_mdbx.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)