mirror of https://github.com/postgres/postgres
Since commitpull/14/headba94518a
, we used XLogFileOpen to open the next segment for writing, but if the end-of-recovery happens exactly at a segment boundary, the new segment might not exist yet. (Beforeba94518a
, XLogFileOpen was correct, because we would open the previous segment if the switch happened at the boundary.) Instead of trying to create it if necessary, it's simpler to not bother opening the segment at all. XLogWrite() will open or create it soon anyway, after writing the checkpoint or end-of-recovery record. Reported by Andres Freund.
parent
79af9a1d26
commit
1e78d81e88
Loading…
Reference in new issue