mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
fixed lame error in slot assignment
This commit is contained in:
parent
5a547b27f7
commit
a55c7868c1
@ -991,7 +991,7 @@ int clusterNodeGetSlotBit(clusterNode *n, int slot) {
|
|||||||
* an error and REDIS_ERR is returned. */
|
* an error and REDIS_ERR is returned. */
|
||||||
int clusterAddSlot(clusterNode *n, int slot) {
|
int clusterAddSlot(clusterNode *n, int slot) {
|
||||||
redisAssert(clusterNodeSetSlotBit(n,slot) == 0);
|
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);
|
printf("SLOT %d added to %.40s\n", slot, n->name);
|
||||||
return REDIS_OK;
|
return REDIS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user