projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a547b2
)
fixed lame error in slot assignment
author
antirez
<antirez@gmail.com>
Thu, 7 Apr 2011 21:33:18 +0000
(23:33 +0200)
committer
antirez
<antirez@gmail.com>
Thu, 7 Apr 2011 21:33:18 +0000
(23:33 +0200)
src/cluster.c
patch
|
blob
|
blame
|
history
diff --git
a/src/cluster.c
b/src/cluster.c
index 2ea1b9cba69359685007d8ecf28604b85b781310..0c3b142aaea30bc07ccd086a3e38322f2191010c 100644
(file)
--- 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;
}