From 17797660f133b4d0491098f656944f46757e2edd Mon Sep 17 00:00:00 2001 From: artix Date: Thu, 27 Dec 2018 17:20:38 +0100 Subject: [PATCH] Cluster Manager del-node: use CLUSTER RESET in place of SHUTDOWN See issue #5687 --- src/redis-cli.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 6fe93e66..bfd245b4 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -5184,9 +5184,10 @@ static int clusterManagerCommandDeleteNode(int argc, char **argv) { if (!success) return 0; } - // Finally shutdown the node - clusterManagerLogInfo(">>> SHUTDOWN the node.\n"); - redisReply *r = redisCommand(node->context, "SHUTDOWN"); + /* Finally send CLUSTER RESET to the node. */ + clusterManagerLogInfo(">>> Sending CLUSTER RESET SOFT to the " + "deleted node.\n"); + redisReply *r = redisCommand(node->context, "CLUSTER RESET %s", "SOFT"); success = clusterManagerCheckRedisReply(node, r, NULL); if (r) freeReplyObject(r); return success;