pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reset InstallXLogFileSegmentActive after walreceiver self-initia
Date: Thu, 15 Sep 2022 13:46:01 +0000
Message-ID: <E1oYpBp-000Slo-42@gemulon.postgresql.org> (raw)

Reset InstallXLogFileSegmentActive after walreceiver self-initiated exit.

After commit cc2c7d65fc27e877c9f407587b0b92d46cd6dd16 added this flag,
failure to reset it caused assertion failures.  In non-assert builds, it
made the system fail to achieve the objectives listed in that commit;
chiefly, we might emit a spurious log message.  Back-patch to v15, where
that commit first appeared.

Bharath Rupireddy and Kyotaro Horiguchi.  Reviewed by Dilip Kumar,
Nathan Bossart and Michael Paquier.  Reported by Dilip Kumar.

Discussion: https://postgr.es/m/CAFiTN-sE3ry=ycMPVtC+Djw4Fd7gbUGVv_qqw6qfzp=JLvqT3g@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1oYpBp-000Slo-42@gemulon.postgresql.org>
Permalink:  ../E1oYpBp-000Slo-42@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oYpBp-000Slo-42@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: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Reset InstallXLogFileSegmentActive after walreceiver self-initia
  In-Reply-To: <E1oYpBp-000Slo-42@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