]> git.saurik.com Git - redis.git/commitdiff
missing return caused protocol desync in CLUSTER SETSLOT
authorantirez <antirez@gmail.com>
Thu, 5 May 2011 15:52:19 +0000 (17:52 +0200)
committerantirez <antirez@gmail.com>
Thu, 5 May 2011 15:52:19 +0000 (17:52 +0200)
src/cluster.c

index 1d39d3e81beac925953786d333cab224111b311d..0b55b1073dd68a0f13af7f5ebb90815472c66be5 100644 (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");
             server.cluster.importing_slots_from[slot] = NULL;
         } else {
             addReplyError(c,"Invalid CLUSTER SETSLOT action or number of arguments");
+            return;
         }
         clusterSaveConfigOrDie();
         addReply(c,shared.ok);
         }
         clusterSaveConfigOrDie();
         addReply(c,shared.ok);