mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
redis-trib: when loading node info also fetch the output of CLUSTER INFO.
This commit is contained in:
parent
f639f99180
commit
b08c9dd280
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user