In XLogFileInit(), fix *use_existent postcondition to suit callers.

Noah Misch <noah@leadboat.com>

Commit: 85656bc3050f0846f53de95768b0f9f9df410560
Author: Noah Misch <noah@leadboat.com>
Date: 2021-06-29T01:34:55Z
Releases: 15.0
In XLogFileInit(), fix *use_existent postcondition to suit callers.

Infrequently, the mismatch caused log_checkpoints messages and
TRACE_POSTGRESQL_CHECKPOINT_DONE() to witness an "added" count too high
by one.  Since that consequence is so minor, no back-patch.

Discussion: https://postgr.es/m/20210202151416.GB3304930@rfd.leadboat.com

Files

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

Discussion