Commit 66c14659 authored by antirez's avatar antirez
Browse files

when processing gossip packets make sure to also update the node bitmap when...

when processing gossip packets make sure to also update the node bitmap when associating slots to nodes. Fixed simply using the appropriate helper function to add a slot.
parent 7112580c
...@@ -636,7 +636,7 @@ int clusterProcessPacket(clusterLink *link) { ...@@ -636,7 +636,7 @@ int clusterProcessPacket(clusterLink *link) {
if (server.cluster.slots[j] == NULL || if (server.cluster.slots[j] == NULL ||
server.cluster.slots[j]->flags & REDIS_NODE_FAIL) server.cluster.slots[j]->flags & REDIS_NODE_FAIL)
{ {
server.cluster.slots[j] = sender; clusterAddSlot(sender,j);
update_state = update_config = 1; update_state = update_config = 1;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment