walreceiver.c: Don't depend on ThisTimeLineID.
authorRobert Haas <rhaas@postgresql.org>
Fri, 29 Oct 2021 17:01:09 +0000 (13:01 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Oct 2021 17:38:50 +0000 (13:38 -0400)
commitb898d46652a0214e9f2ec83a05abf50b6ac635ce
tree9c4c8e070978d9033f6dd8c893763852ebf099e0
parent4b04a9fed33986bc71de25d3f4ca772b12bf0007
walreceiver.c: Don't depend on ThisTimeLineID.

Instead, pass the TLI around explicitly, as a function parameter.
Since this calls a few xlog.c functions that used ThisTimeLineID,
it was necessary to also change those functions to take a
TimeLineID as a parameter.
src/backend/access/transam/xlog.c
src/backend/replication/walreceiver.c
src/include/access/xlog.h