walsender.c: In ReadReplicationSlot, don't rely on ThisTimeLineID.
authorRobert Haas <rhaas@postgresql.org>
Thu, 28 Oct 2021 16:59:56 +0000 (12:59 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 29 Oct 2021 17:38:50 +0000 (13:38 -0400)
commitd2ead068577ade165366393d101c74fe6074a1f9
treee572b2e0880cb0448836bec8fb072c6f35fdd9d9
parentc1638d402a2ddf7b72e8bb0102f129250a57ebc2
walsender.c: In ReadReplicationSlot, don't rely on ThisTimeLineID.

At the point we use the global variable, it will have just been
updated by RecoveryInProgress(), if needed. But let's call
GetCurrentTimeLineID() instead.
src/backend/replication/walsender.c