xlog.c: Invent openLogTLI.
authorRobert Haas <rhaas@postgresql.org>
Mon, 1 Nov 2021 14:56:18 +0000 (10:56 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 1 Nov 2021 16:45:31 +0000 (12:45 -0400)
commitf905cfd9d2ee9962038ed00435eef47b0ced144c
treef5ecba6d47d2c2f13b28d7b10b1b9dd2bbb934b8
parente88517e6f5993e340fbfb69aa63081640491b20d
xlog.c: Invent openLogTLI.

Currently, XLogFileClose() depends on the TLI corresponding to
openLogSegNo being ThisTimeLineID. Instead, invent a new variable
openLogTLI which is precisely the timeline ID of the xlog file
we're accessing via openLogFile.
src/backend/access/transam/xlog.c