提交 b08c9dd2 编写于 作者: A antirez

redis-trib: when loading node info also fetch the output of CLUSTER INFO.

上级 f639f991
......@@ -96,6 +96,15 @@ class ClusterNode
end
}
@dirty = false
@r.cluster("info").split("\n").each{|e|
k,v=e.split(":")
k = k.to_sym
if k != :cluster_state
@info[k] = v.to_i
else
@info[k] = v
end
}
elsif o[:getfriends]
@friends << info
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册