Thread: Make IsInstallXLogFileSegmentActive() an assert-only function

Make IsInstallXLogFileSegmentActive() an assert-only function

From
Bharath Rupireddy
Date:
Hi,

IsInstallXLogFileSegmentActive() is currently being used for assert
checks. How about making it an assert-only function to disable it on
production builds? This can shave an unused function on production
builds. We can easily switch back when there comes a real caller
outside of xlog.c. I'm attaching a tiny patch for this.

Thoughts?

-- 
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment