mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
save
This commit is contained in:
parent
9a6ae5bf5a
commit
ee6b511615
@ -21,7 +21,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
math2 "math"
|
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
@ -305,9 +304,9 @@ func (opts MdbxOpts) Open() (kv.RwDB, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := env.SetOption(mdbx.OptSyncBytes, uint64(math2.MaxUint64)); err != nil {
|
//if err := env.SetOption(mdbx.OptSyncBytes, uint64(math2.MaxUint64)); err != nil {
|
||||||
return nil, err
|
// return nil, err
|
||||||
}
|
//}
|
||||||
|
|
||||||
if opts.roTxsLimiter == nil {
|
if opts.roTxsLimiter == nil {
|
||||||
targetSemCount := int64(runtime.GOMAXPROCS(-1) * 8)
|
targetSemCount := int64(runtime.GOMAXPROCS(-1) * 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user