forked from TrueCloudLab/frostfs-sdk-go
[#76] Add UNIQUE keyword
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
4f48f6c9e0
commit
fcbf96add6
17 changed files with 498 additions and 345 deletions
|
@ -140,6 +140,9 @@ func (c *context) getSelectionBase(s netmap.Selector) []nodeAttrPair {
|
|||
attr := s.GetAttribute()
|
||||
|
||||
for i := range c.netMap.nodes {
|
||||
if c.usedNodes[c.netMap.nodes[i].hash] {
|
||||
continue
|
||||
}
|
||||
if isMain || c.match(f, c.netMap.nodes[i]) {
|
||||
if attr == "" {
|
||||
// Default attribute is transparent identifier which is different for every node.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue