We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent58bc474 commit14570c2Copy full SHA for 14570c2
src/backend/access/transam/xlogreader.c
@@ -833,7 +833,6 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
833
XLogRecPtrfound=InvalidXLogRecPtr;
834
uint32pageHeaderSize;
835
XLogPageHeaderheader;
836
-XLogRecord*record;
837
intreadLen;
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;