Commit 36c24bcc authored by antirez's avatar antirez
Browse files

Cluster: redis-trib shows number of replicas of masters.

parent 27ed9da3
......@@ -248,6 +248,8 @@ class ClusterNode
end
if self.info[:replicate]
is += "\n replicates #{info[:replicate]}"
elsif self.has_flag?("master") && self.info[:replicas]
is += "\n #{info[:replicas].length} additional replica(s)"
end
is
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