Skip to content

Commit 7c35768

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 ddbeb1d commit 7c35768

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
@@ -5840,7 +5840,7 @@ recoveryStopsAfter(XLogReaderState *record)
58405840
uint8 info;
58415841
uint8 xact_info;
58425842
uint8 rmid;
5843-
TimestampTz recordXtime;
5843+
TimestampTz recordXtime = 0;
58445844

58455845
/*
58465846
* Ignore recovery target settings when not in archive recovery (meaning

0 commit comments

Comments
 (0)