pgsql: Simplify main waiting loop of the archiver process

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify main waiting loop of the archiver process
Date: 2023-02-01 06:47:52
Message-ID: E1pN6uM-0011Vg-WA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/38cc08546459a9052b6ed43cdb28973288db38c6

Modified Files
--------------
src/backend/postmaster/pgarch.c | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2023-02-01 17:15:00 pgsql: meson: Fix typo in pkgconfig generation
Previous Message Andres Freund 2023-02-01 02:14:35 pgsql: dblink: Fix variable confusion introduced in e4602483e95