From 8c339a617a2b389b86779e8c9a7930ca54709e49 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 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);