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: Fix variable usage in wakeupWaiters()
Date: Tue, 06 Jan 2026 08:04:35 +0000
Message-ID: <E1vd23O-004oSi-1Y@gemulon.postgresql.org> (raw)

Fix variable usage in wakeupWaiters()

Mistakenly, `i` was used both as an integer representation of lsnType and
an index in wakeUpProcs array.

Discussion: https://postgr.es/m/CA%2BhUKG%2BL0OQR8dQtsNBSaA3FNNyQeFabdeRVzurm0b7Xtp592g%40mail.gmail.com
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Reviewed-by: Ruikai Peng <ruikai@pwno.io>

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlogwait.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)



Message-ID: <E1vd23O-004oSi-1Y@gemulon.postgresql.org>
Permalink:  ../E1vd23O-004oSi-1Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vd23O-004oSi-1Y@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: Fix variable usage in wakeupWaiters()
  In-Reply-To: <E1vd23O-004oSi-1Y@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