mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Cluster Manager del-node: use CLUSTER RESET in place of SHUTDOWN
See issue #5687
This commit is contained in:
parent
e504583b78
commit
17797660f1
@ -5184,9 +5184,10 @@ static int clusterManagerCommandDeleteNode(int argc, char **argv) {
|
|||||||
if (!success) return 0;
|
if (!success) return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally shutdown the node
|
/* Finally send CLUSTER RESET to the node. */
|
||||||
clusterManagerLogInfo(">>> SHUTDOWN the node.\n");
|
clusterManagerLogInfo(">>> Sending CLUSTER RESET SOFT to the "
|
||||||
redisReply *r = redisCommand(node->context, "SHUTDOWN");
|
"deleted node.\n");
|
||||||
|
redisReply *r = redisCommand(node->context, "CLUSTER RESET %s", "SOFT");
|
||||||
success = clusterManagerCheckRedisReply(node, r, NULL);
|
success = clusterManagerCheckRedisReply(node, r, NULL);
|
||||||
if (r) freeReplyObject(r);
|
if (r) freeReplyObject(r);
|
||||||
return success;
|
return success;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user