From: antirez Date: Thu, 7 Apr 2011 21:33:18 +0000 (+0200) Subject: fixed lame error in slot assignment X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/a55c7868c1d66c491399895c1274cb300c983a95 fixed lame error in slot assignment --- 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; }