From 66c146592a0c0ff39570633811008cee8773233e Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 1 Oct 2011 15:11:07 +0200 Subject: [PATCH] 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. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 603a9557..ce75b83e 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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; } }