pgpool2.git / summary / log / commit / refs

commit    0b1ffa2d29b520db8dfe91bd150b56aff495a40d
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Fri Aug 15 07:37:41 2025 +0000

    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), [parent: 579306dbcafd]