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

This commit is contained in:
antirez 2014-02-05 15:52:38 +01:00
parent c72449af30
commit c6f02fd67a

View File

@ -3317,6 +3317,8 @@ void clusterCommand(redisClient *c) {
resetManualFailover();
server.cluster->mf_end = mstime() + REDIS_CLUSTER_MF_TIMEOUT;
clusterSendMFStart(myself->slaveof);
redisLog(REDIS_WARNING,"Manual failover user request accepted.");
addReply(c,shared.ok);
} else {
addReplyError(c,"Wrong CLUSTER subcommand or number of arguments");
}