good morning!!!!

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

add db label (#2283)

parent 2f79fa79
No related branches found
No related tags found
No related merge requests found
......@@ -534,7 +534,7 @@ func (n *Node) OpenDatabase(label ethdb.Label, datadir string) (*kv2.ObjectDatab
var openFunc func(exclusive bool) (*kv2.ObjectDatabase, error)
log.Info("Opening Database", "label", name)
openFunc = func(exclusive bool) (*kv2.ObjectDatabase, error) {
opts := kv2.NewMDBX().Path(dbPath).DBVerbosity(n.config.DatabaseVerbosity)
opts := kv2.NewMDBX().Path(dbPath).Label(label).DBVerbosity(n.config.DatabaseVerbosity)
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