This commit is contained in:
alex.sharov 2022-12-26 21:31:53 +07:00
parent 9a6ae5bf5a
commit ee6b511615

View File

@ -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)