Use SetInstallXLogFileSegmentActive() for setting XLogCtl->InstallXLogFileSegmentActive
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-08-11T16:12:18Z
Lists: pgsql-hackers
Attachments
- v1-0001-Use-SetInstallXLogFileSegmentActive.patch (application/octet-stream) patch v1-0001
Hi, Here's a small patch replacing the explicit setting of XLogCtl->InstallXLogFileSegmentActive with the existing function SetInstallXLogFileSegmentActive(), removes duplicate code and saves 4 LOC. -- Bharath Rupireddy RDS Open Source Databases: https://aws.amazon.com/rds/postgresql/
Commits
-
Use SetInstallXLogFileSegmentActive() in more places in xlog.c
- d265cd202961 16.0 landed