Adjust comment about timeout when waiting for WAL at recovery

A timeout of 5s is used when waiting for WAL to become available at
recovery so as the startup process is able to react promptly if a
trigger file shows up.  However this missed the fact that the startup
process also relies on the timeout to check periodically the status of
any active WAL receiver.

Discussion: https://postgr.es/m/20190131070956.GE13429@paquier.xyz
This commit is contained in:
Michael Paquier 2019-02-01 10:46:45 +09:00
parent eb8c9f0bc3
commit c93001b3f9
1 changed files with 2 additions and 1 deletions

View File

@ -12104,7 +12104,8 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
/*
* Wait for more WAL to arrive. Time out after 5 seconds
* to react to a trigger file promptly.
* to react to a trigger file promptly and to check if the
* WAL receiver is still active.
*/
(void) WaitLatch(&XLogCtl->recoveryWakeupLatch,
WL_LATCH_SET | WL_TIMEOUT |