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.

This commit is contained in:
antirez 2011-10-01 15:11:07 +02:00
parent 7112580cb3
commit 66c146592a

View File

@ -636,7 +636,7 @@ int clusterProcessPacket(clusterLink *link) {
if (server.cluster.slots[j] == NULL ||
server.cluster.slots[j]->flags & REDIS_NODE_FAIL)
{
server.cluster.slots[j] = sender;
clusterAddSlot(sender,j);
update_state = update_config = 1;
}
}