From 0b1ffa2d29b520db8dfe91bd150b56aff495a40d Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Fri, 15 Aug 2025 16:37:41 +0900 Subject: [PATCH] Fix comment in watchdog. Fix a comment in watchdog_state_machine_standby(). When commit b2f1526958 changed from: last_rcv_sec >= (2 * BEACON_MESSAGE_INTERVAL_SECONDS)) to: last_rcv_sec >= (3 * BEACON_MESSAGE_INTERVAL_SECONDS)) The comment below was left unchanged "two" instead of "three". Also fix small typo. Backpatch-though: master only --- src/watchdog/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watchdog/watchdog.c b/src/watchdog/watchdog.c index 31aec1735..3913d692d 100644 --- a/src/watchdog/watchdog.c +++ b/src/watchdog/watchdog.c @@ -7300,7 +7300,7 @@ watchdog_state_machine_standby(WD_EVENTS event, WatchdogNode *wdNode, WDPacketDa if (last_rcv_sec >= (3 * BEACON_MESSAGE_INTERVAL_SECONDS)) { - /* we have missed atleast two beacons from leader node */ + /* we have missed at least three beacons from leader node */ ereport(WARNING, (errmsg("we have not received a beacon message from leader node \"%s\" and it has not replied to our info request", WD_LEADER_NODE->nodeName), -- 2.39.5