redis-trib: don't crash loading node info for nodes without assigned slots
This commit is contained in:
parent
1bec2c3634
commit
f8a5bb158f
@ -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(":")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user