forked from TrueCloudLab/frostfs-node
[#1926] neofs-node: Use `writecache.max_object_size` from the config
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>support/v0.34
parent
13e818e2ca
commit
1980ed968a
|
@ -8,6 +8,8 @@ Changelog for NeoFS Node
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
### Fixed
|
### Fixed
|
||||||
|
- `writecache.max_object_size` is now correctly handled (#1925)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
### Updated
|
### Updated
|
||||||
### Updating from v0.33.0
|
### Updating from v0.33.0
|
||||||
|
|
|
@ -128,7 +128,6 @@ type shardCfg struct {
|
||||||
smallObjectSize uint64
|
smallObjectSize uint64
|
||||||
maxObjSize uint64
|
maxObjSize uint64
|
||||||
flushWorkerCount int
|
flushWorkerCount int
|
||||||
maxCacheSize uint64
|
|
||||||
sizeLimit uint64
|
sizeLimit uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -215,7 +214,7 @@ func (a *applicationConfiguration) readConfig(c *config.Config) error {
|
||||||
wc.path = writeCacheCfg.Path()
|
wc.path = writeCacheCfg.Path()
|
||||||
wc.maxBatchSize = writeCacheCfg.BoltDB().MaxBatchSize()
|
wc.maxBatchSize = writeCacheCfg.BoltDB().MaxBatchSize()
|
||||||
wc.maxBatchDelay = writeCacheCfg.BoltDB().MaxBatchDelay()
|
wc.maxBatchDelay = writeCacheCfg.BoltDB().MaxBatchDelay()
|
||||||
wc.maxCacheSize = writeCacheCfg.MaxObjectSize()
|
wc.maxObjSize = writeCacheCfg.MaxObjectSize()
|
||||||
wc.smallObjectSize = writeCacheCfg.SmallObjectSize()
|
wc.smallObjectSize = writeCacheCfg.SmallObjectSize()
|
||||||
wc.flushWorkerCount = writeCacheCfg.WorkersNumber()
|
wc.flushWorkerCount = writeCacheCfg.WorkersNumber()
|
||||||
wc.sizeLimit = writeCacheCfg.SizeLimit()
|
wc.sizeLimit = writeCacheCfg.SizeLimit()
|
||||||
|
|
Loading…
Reference in New Issue