From ee6b51161503391354c3fb6eb1b03a4d2d02bb86 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Mon, 26 Dec 2022 21:31:53 +0700 Subject: [PATCH] save --- kv/mdbx/kv_mdbx.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kv/mdbx/kv_mdbx.go b/kv/mdbx/kv_mdbx.go index e536324b2..eb5c3ebe5 100644 --- a/kv/mdbx/kv_mdbx.go +++ b/kv/mdbx/kv_mdbx.go @@ -21,7 +21,6 @@ import ( "context" "encoding/binary" "fmt" - math2 "math" "os" "runtime" "sort" @@ -305,9 +304,9 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) { return nil, err } } - if err := env.SetOption(mdbx.OptSyncBytes, uint64(math2.MaxUint64)); err != nil { - return nil, err - } + //if err := env.SetOption(mdbx.OptSyncBytes, uint64(math2.MaxUint64)); err != nil { + // return nil, err + //} if opts.roTxsLimiter == nil { targetSemCount := int64(runtime.GOMAXPROCS(-1) * 8)