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

This commit is contained in:
antirez 2011-09-29 13:18:09 +02:00
parent f639f99180
commit b08c9dd280

View File

@ -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