In XLogFileInit(), fix *use_existent postcondition to suit callers.
Noah Misch <noah@leadboat.com>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlog.c | modified | +6 −7 |
Discussion
- Race between KeepFileRestoredFromArchive() and restartpoint 15 messages · 2021-02-02 → 2022-08-04