Commit b08c9dd2 authored by antirez's avatar antirez
Browse files

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

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment