From bc922dc688ed22a8dc3f5fd8a765beb3e230a836 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 28 Feb 2013 13:12:56 +0100 Subject: [PATCH] redis-trib: skip nodes without slots when creating the config signature. --- src/redis-trib.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index e06925c7d..75583b548 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -200,6 +200,7 @@ class ClusterNode @r.cluster("nodes").each_line{|l| s = l.split slots = s[7..-1].select {|x| x[0..0] != "["} + next if slots.length == 0 config << s[0]+":"+(slots.sort.join(",")) } config.sort.join("|")