summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-06-25 12:58:21 +0200
committerantirez <antirez@gmail.com>2020-06-25 12:58:21 +0200
commitad0a9df77a2ccf3fdf309dcdd1b54cf350fcbe3c (patch)
tree519033378e16deebecb89dc990b02231ceca4622 /src
parent760021e6771b83651575102745d36456deb9371d (diff)
downloadredis-ad0a9df77a2ccf3fdf309dcdd1b54cf350fcbe3c.tar.gz
Update comment to clarify change in #7398.
Diffstat (limited to 'src')
-rw-r--r--src/cluster.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cluster.c b/src/cluster.c
index e15e59fda..e7a32a9a2 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -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);
}