We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58bc474 commit 14570c2Copy full SHA for 14570c2
src/backend/access/transam/xlogreader.c
@@ -833,7 +833,6 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
833
XLogRecPtr found = InvalidXLogRecPtr;
834
uint32 pageHeaderSize;
835
XLogPageHeader header;
836
- XLogRecord *record;
837
int readLen;
838
char *errormsg;
839
@@ -875,7 +874,7 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
875
874
* because either we're at the first record after the beginning of a page
876
* or we just jumped over the remaining data of a continuation.
877
*/
878
- while ((record = XLogReadRecord(state, tmpRecPtr, &errormsg)))
+ while (XLogReadRecord(state, tmpRecPtr, &errormsg) != NULL)
879
{
880
/* continue after the record */
881
tmpRecPtr = InvalidXLogRecPtr;
0 commit comments