mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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. */
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user