From 937482395047e3daea28200c0918a3c01dc84049 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Mon, 26 Sep 2022 08:31:59 +0300 Subject: [PATCH] [#1770] node: Do not create meta dir on config read It is created in `Open` anyway. Signed-off-by: Pavel Karpy --- cmd/neofs-node/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 25c66b6d..f9908bcd 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -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) {