From a55c7868c1d66c491399895c1274cb300c983a95 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 7 Apr 2011 23:33:18 +0200 Subject: [PATCH] fixed lame error in slot assignment --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 2ea1b9cba..0c3b142aa 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; }