mirror of https://mirror.osredm.com/root/redis.git
Cluster: redis-trib shows number of replicas of masters.
This commit is contained in:
parent
27ed9da383
commit
36c24bcca0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue