forked from TrueCloudLab/frostfs-node
[#323] cmd/node: Set default value of small size limit cfg of BlobStor
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1ab630eb24
commit
53f8f06f2d
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue