Minor improvements for waitlsn.c

Alexander Korotkov <akorotkov@postgresql.org>

Commit: e37662f22158c29bc55eda4eda1757f444cf701a
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-04-03T08:32:39Z
Releases: 17.0
Minor improvements for waitlsn.c

 * Remove extra includes
 * Fill 'cur' in addLSNWaiter() before taking the spinlock
 * Initialize 'endtime' with zero in WaitForLSN() to avoid compiler warning

Reported-by: Alvaro Herrera, Masahiko Sawada, Daniel Gustafsson
Discussion: https://postgr.es/m/202404030658.hhj3vfxeyhft%40alvherre.pgsql
Discussion: https://postgr.es/m/CAD21AoAx7irptnPH1OkkkNh9E0M6X-phfX7sYZfwoMsc1qV1sQ%40mail.gmail.com

Files

PathChange+/−
src/backend/commands/waitlsn.c modified +4 −14

Discussion

Cited messages not in the archive: CAD21AoAx7irptnPH1OkkkNh9E0M6X-phfX7sYZfwoMsc1qV1sQ@mail.gmail.com