Commit a55c7868 authored by antirez's avatar antirez
Browse files

fixed lame error in slot assignment

parent 5a547b27
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment