From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Minor improvements for waitlsn.c |
Date: | 2024-04-03 08:32:46 |
Message-ID: | E1rrw34-000GAp-91@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2024-04-03 08:49:20 | pgsql: Ensure that the sync slots reach a consistent state after promot |
Previous Message | Daniel Gustafsson | 2024-04-03 07:49:10 | pgsql: Fix indentation from cafe1056558f |