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
|
end
|
||||||
if self.info[:replicate]
|
if self.info[:replicate]
|
||||||
is += "\n replicates #{info[:replicate]}"
|
is += "\n replicates #{info[:replicate]}"
|
||||||
|
elsif self.has_flag?("master") && self.info[:replicas]
|
||||||
|
is += "\n #{info[:replicas].length} additional replica(s)"
|
||||||
end
|
end
|
||||||
is
|
is
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user