diff options
author | antirez <antirez@gmail.com> | 2014-01-17 17:56:45 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-01-17 17:56:45 +0100 |
commit | 36c24bcca0855004bcbdb9b51b0ae83b26e671ca (patch) | |
tree | 31c2e01a2a7b08dd5f43f03901de43884909c320 /src/redis-trib.rb | |
parent | 27ed9da3834850233d6a793556f06ce9d6834c1b (diff) | |
download | redis-36c24bcca0855004bcbdb9b51b0ae83b26e671ca.tar.gz |
Cluster: redis-trib shows number of replicas of masters.
Diffstat (limited to 'src/redis-trib.rb')
-rwxr-xr-x | src/redis-trib.rb | 2 |
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 |