Commit 7d3e32d5 authored by antirez's avatar antirez
Browse files

redis-trib: don't load cluster config from nodes in FAIL state.

parent e28e61e8
......@@ -409,7 +409,9 @@ class RedisTrib
node.load_info(:getfriends => true)
add_node(node)
node.friends.each{|f|
next if f[:flags].index("noaddr") or f[:flags].index("disconnected")
next if f[:flags].index("noaddr") ||
f[:flags].index("disconnected") ||
f[:flags].index("fail")
fnode = ClusterNode.new(f[:addr])
fnode.connect()
fnode.load_info()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment