提交 7d3e32d5 编写于 作者: A antirez

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册