Commit 4763ecc9 authored by antirez's avatar antirez
Browse files

missing return caused protocol desync in CLUSTER SETSLOT

parent 0276e554
...@@ -1241,6 +1241,7 @@ void clusterCommand(redisClient *c) { ...@@ -1241,6 +1241,7 @@ void clusterCommand(redisClient *c) {
server.cluster.importing_slots_from[slot] = NULL; server.cluster.importing_slots_from[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;
} }
clusterSaveConfigOrDie(); clusterSaveConfigOrDie();
addReply(c,shared.ok); addReply(c,shared.ok);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment