[#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:
Evgenii Stratonikov 2021-10-18 17:08:01 +03:00 committed by Alex Vanin
parent 0759d8d0e5
commit da51c119d5
6 changed files with 9 additions and 9 deletions

View file

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