Use SetInstallXLogFileSegmentActive() in more places in xlog.c
authorMichael Paquier <michael@paquier.xyz>
Wed, 17 Aug 2022 06:28:45 +0000 (15:28 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 17 Aug 2022 06:28:45 +0000 (15:28 +0900)
commitd265cd202961c240a2875826ca47822b54f74db5
tree937b9ebbe75479a71e2d49eff33702ab72e14f8f
parent93f2349c36a7555a81d5e26edf9a0213fb3d323a
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
src/backend/access/transam/xlog.c