forked from TrueCloudLab/frostfs-node
[#859] config: rename mem_size
to memcache_capacity
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
a180f09523
commit
684e3e0ae0
4 changed files with 7 additions and 7 deletions
|
@ -47,13 +47,13 @@ func (x *Config) Path() string {
|
|||
return p
|
||||
}
|
||||
|
||||
// MemSize returns value of "mem_size" config parameter.
|
||||
// MemSize returns value of "memcache_capacity" config parameter.
|
||||
//
|
||||
// Returns MemSizeDefault if value is not a positive number.
|
||||
func (x *Config) MemSize() uint64 {
|
||||
s := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"mem_size",
|
||||
"memcache_capacity",
|
||||
)
|
||||
|
||||
if s > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue