mirror of
https://github.com/fluencelabs/redis
synced 2025-04-12 04:06:04 +00:00
CLUSTER SETSLOT STABLE fixed
This commit is contained in:
parent
4763ecc9ad
commit
46834808fe
@ -1239,6 +1239,7 @@ void clusterCommand(redisClient *c) {
|
|||||||
server.cluster.importing_slots_from[slot] = n;
|
server.cluster.importing_slots_from[slot] = n;
|
||||||
} else if (!strcasecmp(c->argv[3]->ptr,"stable") && c->argc == 4) {
|
} else if (!strcasecmp(c->argv[3]->ptr,"stable") && c->argc == 4) {
|
||||||
server.cluster.importing_slots_from[slot] = NULL;
|
server.cluster.importing_slots_from[slot] = NULL;
|
||||||
|
server.cluster.migrating_slots_to[slot] = NULL;
|
||||||
} else {
|
} else {
|
||||||
addReplyError(c,"Invalid CLUSTER SETSLOT action or number of arguments");
|
addReplyError(c,"Invalid CLUSTER SETSLOT action or number of arguments");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user