From 4763ecc9add311467c9c3852a81664a0b3005919 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 5 May 2011 17:52:19 +0200 Subject: [PATCH] missing return caused protocol desync in CLUSTER SETSLOT --- src/cluster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cluster.c b/src/cluster.c index 1d39d3e8..0b55b107 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);