summaryrefslogtreecommitdiff
path: root/src/redis-trib.rb
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-01-17 17:56:45 +0100
committerantirez <antirez@gmail.com>2014-01-17 17:56:45 +0100
commit36c24bcca0855004bcbdb9b51b0ae83b26e671ca (patch)
tree31c2e01a2a7b08dd5f43f03901de43884909c320 /src/redis-trib.rb
parent27ed9da3834850233d6a793556f06ce9d6834c1b (diff)
downloadredis-36c24bcca0855004bcbdb9b51b0ae83b26e671ca.tar.gz
Cluster: redis-trib shows number of replicas of masters.
Diffstat (limited to 'src/redis-trib.rb')
-rwxr-xr-xsrc/redis-trib.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 1f052c305..81811f4b9 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -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