fixed lame error in slot assignment

This commit is contained in:
antirez 2011-04-07 23:33:18 +02:00
parent 5a547b27f7
commit a55c7868c1

View File

@ -991,7 +991,7 @@ int clusterNodeGetSlotBit(clusterNode *n, int slot) {
* an error and REDIS_ERR is returned. */
int clusterAddSlot(clusterNode *n, int slot) {
redisAssert(clusterNodeSetSlotBit(n,slot) == 0);
server.cluster.slots[slot] = server.cluster.myself;
server.cluster.slots[slot] = n;
printf("SLOT %d added to %.40s\n", slot, n->name);
return REDIS_OK;
}