postgres.git / summary / log / commit / refs
commit 95f0340c3bc745aee3aa90847efd2007e40236e9
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Tue Jun 06 17:30:53 2023 +0000
First released in: 16.0, 11.21, 12.16, 13.12, 14.9, 15.4
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
src/backend/access/transam/xlogrecovery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
[parent: 3f1aaaa18068]