diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-06-06 20:30:53 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-06-06 20:30:53 +0300 |
commit | 95f0340c3bc745aee3aa90847efd2007e40236e9 (patch) | |
tree | 8cc674dbc0e06d455db3f3fe9a7739526fa9a27c /src | |
parent | 3f1aaaa180689f2015e7f7bd01c9be6d7a993b42 (diff) | |
download | postgresql-95f0340c3bc745aee3aa90847efd2007e40236e9.tar.gz postgresql-95f0340c3bc745aee3aa90847efd2007e40236e9.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xlogrecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index 4883fcb512b..becc2bda62e 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -2644,7 +2644,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 |