missing return caused protocol desync in CLUSTER SETSLOT

This commit is contained in:
antirez 2011-05-05 17:52:19 +02:00
parent 0276e5545c
commit 4763ecc9ad

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);