forked from TrueCloudLab/frostfs-node
[#859] config: rename small_size_limit
to small_object_size
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
cbf8ca12b0
commit
0759d8d0e5
5 changed files with 14 additions and 14 deletions
|
@ -88,13 +88,13 @@ func (x *Config) Compress() bool {
|
|||
)
|
||||
}
|
||||
|
||||
// SmallSizeLimit returns value of "small_size_limit" config parameter.
|
||||
// SmallSizeLimit returns value of "small_object_size" config parameter.
|
||||
//
|
||||
// Returns SmallSizeLimitDefault if value is not a positive number.
|
||||
func (x *Config) SmallSizeLimit() uint64 {
|
||||
l := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"small_size_limit",
|
||||
"small_object_size",
|
||||
)
|
||||
|
||||
if l > 0 {
|
||||
|
|
|
@ -63,13 +63,13 @@ func (x *Config) MemSize() uint64 {
|
|||
return MemSizeDefault
|
||||
}
|
||||
|
||||
// SmallObjectSize returns value of "small_size" config parameter.
|
||||
// SmallObjectSize returns value of "small_object_size" config parameter.
|
||||
//
|
||||
// Returns SmallSizeDefault if value is not a positive number.
|
||||
func (x *Config) SmallObjectSize() uint64 {
|
||||
s := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"small_size",
|
||||
"small_object_size",
|
||||
)
|
||||
|
||||
if s > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue