Skip to content

Commit 525ec83

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 1b322c1 commit 525ec83

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5936,7 +5936,7 @@ recoveryStopsAfter(XLogReaderState *record)
59365936
uint8 info;
59375937
uint8 xact_info;
59385938
uint8 rmid;
5939-
TimestampTz recordXtime;
5939+
TimestampTz recordXtime = 0;
59405940

59415941
/*
59425942
* Ignore recovery target settings when not in archive recovery (meaning

0 commit comments

Comments
 (0)