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

This commit is contained in:
antirez 2014-01-17 17:56:45 +01:00
parent 27ed9da383
commit 36c24bcca0

View File

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