forked from TrueCloudLab/frostfs-node
[#859] config: rename writecache.size_limit
to writecache.capacity
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
c015b04ed5
commit
e7fd980951
4 changed files with 8 additions and 8 deletions
|
@ -111,13 +111,13 @@ func (x *Config) WorkersNumber() int {
|
|||
return WorkersNumberDefault
|
||||
}
|
||||
|
||||
// SizeLimit returns value of "size_limit" config parameter.
|
||||
// SizeLimit returns value of "capacity" config parameter.
|
||||
//
|
||||
// Returns SizeLimitDefault if value is not a positive number.
|
||||
func (x *Config) SizeLimit() uint64 {
|
||||
c := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"size_limit",
|
||||
"capacity",
|
||||
)
|
||||
|
||||
if c > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue