Fix comment in watchdog.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 15 Aug 2025 07:37:41 +0000 (16:37 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 15 Aug 2025 07:37:41 +0000 (16:37 +0900)
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

index 31aec1735f45464ca4ea13299aa73bdebc8fd41a..3913d692dfddd19cd7a27ec33d5c2a7933b06d90 100644 (file)
@@ -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),