]> git.saurik.com Git - redis.git/commitdiff
redis-trib: don't crash loading node info for nodes without assigned slots
authorantirez <antirez@gmail.com>
Thu, 29 Sep 2011 13:31:02 +0000 (15:31 +0200)
committerantirez <antirez@gmail.com>
Thu, 29 Sep 2011 13:31:02 +0000 (15:31 +0200)
src/redis-trib.rb

index 91b53654273e78dddf8c09238ca109f75b6ae6a5..969cbfc33dce55000616d12347b521eeb93db611 100755 (executable)
@@ -94,7 +94,7 @@ class ClusterNode
                     else
                         self.add_slots((s.to_i)..(s.to_i))
                     end
-                }
+                } if slots
                 @dirty = false
                 @r.cluster("info").split("\n").each{|e|    
                     k,v=e.split(":")