Update comment to clarify change in #7398.

(cherry picked from commit 7bb0342201aa317415da7b512fb69737581bf822)
This commit is contained in:
antirez 2020-06-25 12:58:21 +02:00 committed by Oran Agra
parent ecb2743e8a
commit ae2bcd49db

View File

@ -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);
}