From 1980ed968a71e6ecb9a8aefb04d23971da62bd49 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 18 Oct 2022 15:54:25 +0300 Subject: [PATCH] [#1926] neofs-node: Use `writecache.max_object_size` from the config Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 2 ++ cmd/neofs-node/config.go | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d36581f03..91fcb2601 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Changelog for NeoFS Node ### Changed ### Fixed +- `writecache.max_object_size` is now correctly handled (#1925) + ### Removed ### Updated ### Updating from v0.33.0 diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 12f91be9f..8811a1135 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -128,7 +128,6 @@ type shardCfg struct { smallObjectSize uint64 maxObjSize uint64 flushWorkerCount int - maxCacheSize uint64 sizeLimit uint64 } @@ -215,7 +214,7 @@ func (a *applicationConfiguration) readConfig(c *config.Config) error { wc.path = writeCacheCfg.Path() wc.maxBatchSize = writeCacheCfg.BoltDB().MaxBatchSize() wc.maxBatchDelay = writeCacheCfg.BoltDB().MaxBatchDelay() - wc.maxCacheSize = writeCacheCfg.MaxObjectSize() + wc.maxObjSize = writeCacheCfg.MaxObjectSize() wc.smallObjectSize = writeCacheCfg.SmallObjectSize() wc.flushWorkerCount = writeCacheCfg.WorkersNumber() wc.sizeLimit = writeCacheCfg.SizeLimit()