mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
Cluster: CLUSTER FAILOVER replies with OK and logs the event.
This commit is contained in:
parent
c72449af30
commit
c6f02fd67a
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user