Content-Length: 260381 | pFad | http://github.com/postgrespro/postgres/commit/c93001b3f957994942ea18ed261ae06ac507ea95

7C Adjust comment about timeout when waiting for WAL at recovery · postgrespro/postgres@c93001b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/c93001b3f957994942ea18ed261ae06ac507ea95

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy