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 3b5289a04c
commit 5d8f25da36

View File

@ -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(":")