pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Minor improvements for waitlsn.c
Date: Wed, 03 Apr 2024 08:32:46 +0000
Message-ID: <E1rrw34-000GAp-91@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1rrw34-000GAp-91@gemulon.postgresql.org>
Permalink:  ../E1rrw34-000GAp-91@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rrw34-000GAp-91@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Minor improvements for waitlsn.c
  In-Reply-To: <E1rrw34-000GAp-91@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox