pgsql: Minor improvements for waitlsn.c - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Minor improvements for waitlsn.c
Date
Msg-id E1rrw34-000GAp-91@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e37662f22158c29bc55eda4eda1757f444cf701a

Modified Files
--------------
src/backend/commands/waitlsn.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Fix indentation from cafe1056558f
Next
From: Amit Kapila
Date:
Subject: pgsql: Ensure that the sync slots reach a consistent state after promot