]> git.saurik.com Git - redis.git/commitdiff
when processing gossip packets make sure to also update the node bitmap when associat...
authorantirez <antirez@gmail.com>
Sat, 1 Oct 2011 13:11:07 +0000 (15:11 +0200)
committerantirez <antirez@gmail.com>
Sat, 1 Oct 2011 13:11:07 +0000 (15:11 +0200)
src/cluster.c

index 603a9557faca9c6ff31381df94733b08211e948e..ce75b83e739412ede64000aedb9f698cd9f71724 100644 (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;
                         }
                     }