forked from TrueCloudLab/frostfs-api-go
[#213] netmap: Do not append not twice if selector is unnamed
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
ea6b6adfe0
commit
4e65fa41b8
2 changed files with 28 additions and 0 deletions
|
@ -68,6 +68,8 @@ func (m *Netmap) GetContainerNodes(p *PlacementPolicy, pivot []byte) (ContainerN
|
|||
for _, s := range p.Selectors() {
|
||||
result[i] = append(result[i], flattenNodes(c.Selections[s.Name()])...)
|
||||
}
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
nodes, ok := c.Selections[r.Selector()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue