good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit d4d4c2ec authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

Open Integration: use same db limit (#4259)

parent a10d5910
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ package commands
import (
"path/filepath"
"github.com/c2h5oh/datasize"
"github.com/ledgerwatch/erigon-lib/kv"
kv2 "github.com/ledgerwatch/erigon-lib/kv/mdbx"
"github.com/ledgerwatch/erigon/cmd/utils"
......@@ -57,6 +58,9 @@ func openDB(path string, logger log.Logger, applyMigrations bool) kv.RwDB {
func openKV(label kv.Label, logger log.Logger, path string, exclusive bool) kv.RwDB {
opts := kv2.NewMDBX(logger).Path(path).Label(label)
if label == kv.ChainDB {
opts = opts.MapSize(8 * datasize.TB)
}
if exclusive {
opts = opts.Exclusive()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment