Commit c6f02fd6 authored by antirez's avatar antirez
Browse files

Cluster: CLUSTER FAILOVER replies with OK and logs the event.

parent c72449af
...@@ -3317,6 +3317,8 @@ void clusterCommand(redisClient *c) { ...@@ -3317,6 +3317,8 @@ void clusterCommand(redisClient *c) {
resetManualFailover(); resetManualFailover();
server.cluster->mf_end = mstime() + REDIS_CLUSTER_MF_TIMEOUT; server.cluster->mf_end = mstime() + REDIS_CLUSTER_MF_TIMEOUT;
clusterSendMFStart(myself->slaveof); clusterSendMFStart(myself->slaveof);
redisLog(REDIS_WARNING,"Manual failover user request accepted.");
addReply(c,shared.ok);
} else { } else {
addReplyError(c,"Wrong CLUSTER subcommand or number of arguments"); addReplyError(c,"Wrong CLUSTER subcommand or number of arguments");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment