[#1524] neofs-node: Reuse boltdb config for different components

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-06-16 18:07:02 +03:00 committed by LeL
parent 0408acc40e
commit d6043abc24
6 changed files with 82 additions and 25 deletions

View file

@ -417,7 +417,7 @@ func initShardOptions(c *cfg) {
gcCfg := sc.GC()
metaPath := metabaseCfg.Path()
metaPerm := metabaseCfg.Perm()
metaPerm := metabaseCfg.BoltDB().Perm()
fatalOnErr(util.MkdirAllX(filepath.Dir(metaPath), metaPerm))
gcEventChannel := make(chan shard.Event)