Use SetInstallXLogFileSegmentActive() in more places in xlog.c

Michael Paquier <michael@paquier.xyz>

Commit: d265cd202961c240a2875826ca47822b54f74db5
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-08-17T06:28:45Z
Releases: 16.0
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

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +2 −6

Discussion