Change read_local_xlog_page so that it does not change ThisTimeLineID.
authorRobert Haas <[email protected]>
Thu, 28 Oct 2021 16:18:40 +0000 (12:18 -0400)
committerRobert Haas <[email protected]>
Fri, 29 Oct 2021 17:38:50 +0000 (13:38 -0400)
commitc1638d402a2ddf7b72e8bb0102f129250a57ebc2
tree293ce1ac437c7ee3a9ca30ef6ce2c3d1937caedd
parent4c30d46ef1f569f368dc9c657804c3c731d74bd3
Change read_local_xlog_page so that it does not change ThisTimeLineID.

To make that work, change XLogReadDetermineTimeline to take a TLI
as an argument instead of having it depend on the global variable.

With that done, XlogReadTwoPhaseData doesn't need to save and
restore the value, so remove that logic.
src/backend/access/transam/twophase.c
src/backend/access/transam/xlogutils.c
src/backend/replication/walsender.c
src/include/access/xlogutils.h