This commit is contained in:
alex.sharov 2022-12-25 21:54:07 +07:00
parent 2110fb06d5
commit b023e06483

View File

@ -21,6 +21,7 @@ import (
"context"
"encoding/binary"
"fmt"
math2 "math"
"os"
"runtime"
"sort"
@ -303,6 +304,9 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) {
env.Close()
return nil, err
}
if err := env.SetOption(mdbx.OptSyncBytes, uint64(math2.MaxUint64)); err != nil {
return nil, err
}
}
if opts.roTxsLimiter == nil {