Skip to content

Commit eb8c0c9

Browse files
hlinnakapull[bot]
authored andcommitted
Initialize 'recordXtime' to silence compiler warning.
In reality, recordXtime will always be set by the getRecordTimestamp call, but the compiler doesn't necessarily see that. Back-patch to all supported versions. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/CT5MN8E11U0M.1NYNCHXYUHY41@gonk
1 parent 0334367 commit eb8c0c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlogrecovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2644,7 +2644,7 @@ recoveryStopsAfter(XLogReaderState *record)
26442644
uint8 info;
26452645
uint8 xact_info;
26462646
uint8 rmid;
2647-
TimestampTz recordXtime;
2647+
TimestampTz recordXtime = 0;
26482648

26492649
/*
26502650
* Ignore recovery target settings when not in archive recovery (meaning

0 commit comments

Comments
 (0)