diff --git a/src/cluster.c b/src/cluster.c index 2ea1b9cb..0c3b142a 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -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; }