From 53f8f06f2d337d65aa1149ee12c70d5136a048db Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 18 Jan 2021 11:32:07 +0300 Subject: [PATCH] [#323] cmd/node: Set default value of small size limit cfg of BlobStor 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 2f02babec..009134adf 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -502,6 +502,9 @@ func initShardOptions(c *cfg) { smallSzLimit := c.viper.GetUint64( configPath(blobPrefix, cfgBlobStorSmallSzLimit), ) + if smallSzLimit == 0 { + smallSzLimit = 1 << 20 // 1MB + } blzPrefix := configPath(blobPrefix, cfgBlobStorBlzSection)