Skip to content

Commit c93001b

Browse files
committed
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
1 parent eb8c9f0 commit c93001b

File tree

1 file changed

+2
-1
lines changed
  • src/backend/access/transam

1 file changed

+2
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12104,7 +12104,8 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
1210412104

1210512105
/*
1210612106
* Wait for more WAL to arrive. Time out after 5 seconds
12107-
* to react to a trigger file promptly.
12107+
* to react to a trigger file promptly and to check if the
12108+
* WAL receiver is still active.
1210812109
*/
1210912110
(void) WaitLatch(&XLogCtl->recoveryWakeupLatch,
1211012111
WL_LATCH_SET | WL_TIMEOUT |

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy