aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-02-01 15:46:04 +0900
committerMichael Paquier <michael@paquier.xyz>2023-02-01 15:46:04 +0900
commit38cc08546459a9052b6ed43cdb28973288db38c6 (patch)
tree7c20a2889edc94bef243aa57cf906d49bba1222b /src/backend/tcop/postgres.c
parentfbed4bc59e362e13fb0d0e0b08c995c18c7e4d5a (diff)
downloadpostgresql-38cc08546459a9052b6ed43cdb28973288db38c6.tar.gz
postgresql-38cc08546459a9052b6ed43cdb28973288db38c6.zip
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
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions