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