pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix logic bug in 1632ea43682f
Date: Mon, 14 Jun 2021 20:32:45 +0000
Message-ID: <E1lstGH-0003NL-UZ@gemulon.postgresql.org> (raw)

Fix logic bug in 1632ea43682f

I overlooked that one condition was logically inverted.  The fix is a
little bit more involved than simply negating the condition, to make
the code easier to read.

Fix some outdated comments left by the same commit, while at it.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/YMRlmB3/lZw8YBH+@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33c509956704e1d918077b51ccd954f2e201a8f5

Modified Files
--------------
src/backend/replication/slot.c | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)



Message-ID: <E1lstGH-0003NL-UZ@gemulon.postgresql.org>
Permalink:  ../E1lstGH-0003NL-UZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lstGH-0003NL-UZ@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix logic bug in 1632ea43682f
  In-Reply-To: <E1lstGH-0003NL-UZ@gemulon.postgresql.org>
  References: <E1lstGH-0003NL-UZ@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