Simplify main waiting loop of the archiver process
Michael Paquier <michael@paquier.xyz>
Simplify main waiting loop of the archiver process As coded, the timeout given to WaitLatch() was always equal to PGARCH_AUTOWAKE_INTERVAL, as time() was called two times repeatedly. This simplification could have been done in d75288f. While on it, this adjusts a comment in pgarch.c to describe the archiver in a more neutral way. Author: Sravan Kumar, Nathan Bossart Reviewed-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/CA+=NbjjqYE9-Lnw7H7DAiS5jebmoMikwZQb_sBP7kgBCn9q6Hg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/pgarch.c | modified | +11 −21 |
Discussion
- Question regarding "Make archiver process an auxiliary process. commit" 11 messages · 2022-12-05 → 2023-02-01