summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-05-05 17:52:19 +0200
committerantirez <antirez@gmail.com>2011-05-05 17:52:19 +0200
commit4763ecc9add311467c9c3852a81664a0b3005919 (patch)
treedb0efa11a4508e948a1aead906e99b1e3643f163 /src/cluster.c
parent0276e5545c78490613871939d48989090a54c2c9 (diff)
downloadredis-4763ecc9add311467c9c3852a81664a0b3005919.tar.gz
missing return caused protocol desync in CLUSTER SETSLOT
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 1d39d3e81..0b55b1073 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -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);