[#1926] neofs-node: Use writecache.max_object_size from the config

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-10-18 15:54:25 +03:00 committed by fyrchik
parent 13e818e2ca
commit 1980ed968a
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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()