From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use SetInstallXLogFileSegmentActive() in more places in xlog.c
Date: Wed, 17 Aug 2022 06:29:33 +0000
Message-ID: <E1oOCYW-0018wh-Ge@gemulon.postgresql.org> (raw)
Use SetInstallXLogFileSegmentActive() in more places in xlog.c
This reduces the code paths where XLogCtl->InstallXLogFileSegmentActive
is directly touched, and this wrapper function does the same thing as
the original code replaced by the function call.
Author: Bharath Rupireddy
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/CALj2ACVhkf-bC5CX-=6iBUfkO5GqmBntQH+m=HpY0iQ=-g1pRg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d265cd202961c240a2875826ca47822b54f74db5
Modified Files
--------------
src/backend/access/transam/xlog.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Use SetInstallXLogFileSegmentActive() in more places in xlog.c
In-Reply-To: <E1oOCYW-0018wh-Ge@gemulon.postgresql.org>
References: <E1oOCYW-0018wh-Ge@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