Skip to content

Commit 95f0340

Browse files
committed
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 3f1aaaa commit 95f0340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlogrecovery.c

+1-1
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)