From 36c24bcca0855004bcbdb9b51b0ae83b26e671ca Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 17 Jan 2014 17:56:45 +0100 Subject: [PATCH] Cluster: redis-trib shows number of replicas of masters. --- src/redis-trib.rb | 2 ++ 1 file changed, 2 insertions(+) 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