From 7b9292ce651b4affb2a1e2a4ce6f3706b81919d4 Mon Sep 17 00:00:00 2001 From: Binbin Date: Thu, 14 Nov 2024 17:27:43 +0800 Subject: [PATCH] update comment Signed-off-by: Binbin --- src/cluster_legacy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index ba5ee87c6d..a6a3460594 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -2256,7 +2256,8 @@ void clusterProcessGossipSection(clusterMsg *hdr, clusterLink *link) { /* Ignore gossips about self. */ if (node && node != myself) { /* We already know this node. - Handle failure reports, only when the sender is a voting primary. */ + * Handle failure reports, the report is added only if the sender is a voting primary, + * and deletion of a failure report is not restricted. */ if (sender) { if (flags & (CLUSTER_NODE_FAIL | CLUSTER_NODE_PFAIL)) { if (clusterNodeIsVotingPrimary(sender) && clusterNodeAddFailureReport(node, sender)) {