forked from TrueCloudLab/frostfs-node
[#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:
parent
76cfcc242c
commit
9374823950
1 changed files with 0 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue