Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c6f02fd6
Commit
c6f02fd6
authored
Feb 05, 2014
by
antirez
Browse files
Cluster: CLUSTER FAILOVER replies with OK and logs the event.
parent
c72449af
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
c6f02fd6
...
@@ -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"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment