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
14a59d4c
Commit
14a59d4c
authored
Jun 25, 2020
by
antirez
Committed by
Oran Agra
Jul 20, 2020
Browse files
Update comment to clarify change in #7398.
(cherry picked from commit
ad0a9df7
)
parent
17aaf5ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
14a59d4c
...
...
@@ -1264,7 +1264,10 @@ void markNodeAsFailingIfNeeded(clusterNode *node) {
node
->
fail_time
=
mstime
();
/* Broadcast the failing node name to everybody, forcing all the other
* reachable nodes to flag the node as FAIL. */
* reachable nodes to flag the node as FAIL.
* We do that even if this node is a replica and not a master: anyway
* the failing state is triggered collecting failure reports from masters,
* so here the replica is only helping propagating this status. */
clusterSendFail
(
node
->
name
);
clusterDoBeforeSleep
(
CLUSTER_TODO_UPDATE_STATE
|
CLUSTER_TODO_SAVE_CONFIG
);
}
...
...
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