[#1770] node: Do not create meta dir on config read

It is created in `Open` anyway.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-09-26 08:31:59 +03:00 committed by fyrchik
parent 76cfcc242c
commit 9374823950

View file

@ -5,7 +5,6 @@ import (
"errors" "errors"
"fmt" "fmt"
"net" "net"
"path/filepath"
"sync" "sync"
atomicstd "sync/atomic" atomicstd "sync/atomic"
"time" "time"
@ -494,7 +493,6 @@ func initShardOptions(c *cfg) {
metaPath := metabaseCfg.Path() metaPath := metabaseCfg.Path()
metaPerm := metabaseCfg.BoltDB().Perm() metaPerm := metabaseCfg.BoltDB().Perm()
fatalOnErr(util.MkdirAllX(filepath.Dir(metaPath), metaPerm))
gcEventChannel := make(chan shard.Event) gcEventChannel := make(chan shard.Event)
addNewEpochNotificationHandler(c, func(ev event.Event) { addNewEpochNotificationHandler(c, func(ev event.Event) {