mirror of
https://github.com/fluencelabs/redis
synced 2025-03-21 01:50:50 +00:00
redis-trib: skip nodes without slots when creating the config signature.
This commit is contained in:
parent
64942fca01
commit
bc922dc688
@ -200,6 +200,7 @@ class ClusterNode
|
|||||||
@r.cluster("nodes").each_line{|l|
|
@r.cluster("nodes").each_line{|l|
|
||||||
s = l.split
|
s = l.split
|
||||||
slots = s[7..-1].select {|x| x[0..0] != "["}
|
slots = s[7..-1].select {|x| x[0..0] != "["}
|
||||||
|
next if slots.length == 0
|
||||||
config << s[0]+":"+(slots.sort.join(","))
|
config << s[0]+":"+(slots.sort.join(","))
|
||||||
}
|
}
|
||||||
config.sort.join("|")
|
config.sort.join("|")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user