forked from TrueCloudLab/frostfs-node
[#859] config: rename max_size
to max_object_size
`_size` suffix by itself makes me think about restrictions on database size. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
da51c119d5
commit
a180f09523
4 changed files with 7 additions and 7 deletions
|
@ -79,13 +79,13 @@ func (x *Config) SmallObjectSize() uint64 {
|
|||
return SmallSizeDefault
|
||||
}
|
||||
|
||||
// MaxObjectSize returns value of "max_size" config parameter.
|
||||
// MaxObjectSize returns value of "max_object_size" config parameter.
|
||||
//
|
||||
// Returns MaxSizeDefault if value is not a positive number.
|
||||
func (x *Config) MaxObjectSize() uint64 {
|
||||
s := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"max_size",
|
||||
"max_object_size",
|
||||
)
|
||||
|
||||
if s > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue