missing return caused protocol desync in CLUSTER SETSLOT

This commit is contained in:
antirez 2011-05-05 17:52:19 +02:00
parent 4ef69c926e
commit 8c339a617a

View File

@ -1241,6 +1241,7 @@ void clusterCommand(redisClient *c) {
server.cluster.importing_slots_from[slot] = NULL;
} else {
addReplyError(c,"Invalid CLUSTER SETSLOT action or number of arguments");
return;
}
clusterSaveConfigOrDie();
addReply(c,shared.ok);