forked from TrueCloudLab/frostfs-node
[#859] config: rename shallow_*
to width
and depth
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
684e3e0ae0
commit
c015b04ed5
7 changed files with 25 additions and 25 deletions
|
@ -61,14 +61,14 @@ func (x *Config) Perm() fs.FileMode {
|
|||
return fs.FileMode(p)
|
||||
}
|
||||
|
||||
// ShallowDepth returns value of "shallow_depth" config parameter.
|
||||
// ShallowDepth returns value of "depth" config parameter.
|
||||
//
|
||||
// Returns ShallowDepthDefault if value is out of
|
||||
// [1:fstree.MaxDepth] range.
|
||||
func (x *Config) ShallowDepth() int {
|
||||
d := config.IntSafe(
|
||||
(*config.Config)(x),
|
||||
"shallow_depth",
|
||||
"depth",
|
||||
)
|
||||
|
||||
if d >= 1 && d <= fstree.MaxDepth {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue