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
pull/139/head
Heikki Linnakangas 2 years ago
parent 1b322c1fae
commit 525ec837e1
  1. 2
      src/backend/access/transam/xlog.c

@ -5936,7 +5936,7 @@ recoveryStopsAfter(XLogReaderState *record)
uint8 info;
uint8 xact_info;
uint8 rmid;
TimestampTz recordXtime;
TimestampTz recordXtime = 0;
/*
* Ignore recovery target settings when not in archive recovery (meaning

Loading…
Cancel
Save