forked from TrueCloudLab/frostfs-node
[#473] placement: Fix backwards compatibility for `copies_number`
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>feature/390-tree_cli-backup
parent
43d263c3d5
commit
0c866f62c5
|
@ -86,7 +86,7 @@ func NewTraverser(opts ...Option) (*Traverser, error) {
|
|||
}
|
||||
|
||||
// backward compatibility for scalar `copies_number`
|
||||
if len(cfg.copyNumbers) == 1 {
|
||||
if len(cfg.copyNumbers) == 1 && cfg.copyNumbers[0] != 0 {
|
||||
cfg.flatSuccess = &cfg.copyNumbers[0]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue