forked from TrueCloudLab/frostfs-node
[#859] config: rename opened_cache_size
to opened_cache_capacity
Capacity is a common term to use with cache, see e.g. leveldb configuration. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0759d8d0e5
commit
da51c119d5
6 changed files with 9 additions and 9 deletions
|
@ -76,13 +76,13 @@ func (x *Config) ShallowWidth() uint64 {
|
|||
return ShallowWidthDefault
|
||||
}
|
||||
|
||||
// OpenedCacheSize returns value of "opened_cache_size" config parameter.
|
||||
// OpenedCacheSize returns value of "opened_cache_capacity" config parameter.
|
||||
//
|
||||
// Returns OpenedCacheSizeDefault if value is not a positive number.
|
||||
func (x *Config) OpenedCacheSize() int {
|
||||
d := config.IntSafe(
|
||||
(*config.Config)(x),
|
||||
"opened_cache_size",
|
||||
"opened_cache_capacity",
|
||||
)
|
||||
|
||||
if d > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue