redis-trib: don't crash loading node info for nodes without assigned slots

This commit is contained in:
antirez 2011-09-29 15:31:02 +02:00
parent 1bec2c3634
commit f8a5bb158f

View File

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