]> git.saurik.com Git - redis.git/commitdiff
A node can populate a slot if a message from a trusted slot is received claiming...
authorantirez <antirez@gmail.com>
Wed, 5 Oct 2011 15:40:02 +0000 (17:40 +0200)
committerantirez <antirez@gmail.com>
Wed, 5 Oct 2011 15:40:02 +0000 (17:40 +0200)
src/cluster.c

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