pgsql: Use SetInstallXLogFileSegmentActive() in more places in xlog.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use SetInstallXLogFileSegmentActive() in more places in xlog.c
Date: 2022-08-17 06:29:33
Message-ID: E1oOCYW-0018wh-Ge@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2022-08-17 08:51:54 pgsql: doc: Document pg_trgm being case-insensitive by default
Previous Message Michael Paquier 2022-08-17 05:55:52 pgsql: Allow event trigger table_rewrite for ALTER MATERIALIZED VIEW