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
fe71dffb
Commit
fe71dffb
authored
Nov 27, 2015
by
antirez
Browse files
Redis Cluster: hint about validity factor when slave can't failover.
parent
8e491b17
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
fe71dffb
...
@@ -2624,8 +2624,10 @@ void clusterLogCantFailover(int reason) {
...
@@ -2624,8 +2624,10 @@ void clusterLogCantFailover(int reason) {
(
mstime
()
-
myself
->
slaveof
->
fail_time
)
<
nolog_fail_time
)
return
;
(
mstime
()
-
myself
->
slaveof
->
fail_time
)
<
nolog_fail_time
)
return
;
switch
(
reason
)
{
switch
(
reason
)
{
case
REDIS_CLUSTER_CANT_FAILOVER_DATA_AGE
:
case
CLUSTER_CANT_FAILOVER_DATA_AGE
:
msg
=
"Disconnected from master for longer than allowed."
;
msg
=
"Disconnected from master for longer than allowed. "
"Please check the 'cluster-slave-validity-factor' configuration "
"option."
;
break
;
break
;
case
REDIS_CLUSTER_CANT_FAILOVER_WAITING_DELAY
:
case
REDIS_CLUSTER_CANT_FAILOVER_WAITING_DELAY
:
msg
=
"Waiting the delay before I can start a new failover."
;
msg
=
"Waiting the delay before I can start a new failover."
;
...
...
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