From 707434efa9d96656454189cee9933a122f7cc05a Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 18 Jan 2021 11:32:35 +0300 Subject: [PATCH] [#323] cmd/node: Set default value of Blobovnicza's storage size limit Signed-off-by: Leonard Lyubich --- cmd/neofs-node/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 009134ad..edb2cce4 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -511,6 +511,9 @@ func initShardOptions(c *cfg) { blzSize := c.viper.GetUint64( configPath(blzPrefix, cfgBlzSize), ) + if blzSize == 0 { + blzSize = 1 << 30 // 1 GB + } blzShallowDepth := c.viper.GetUint64( configPath(blzPrefix, cfgBlzShallowDepth),