mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Remove superflous variable from xlogreader's XLogFindNextRecord().
Pointed out by Coverity. Since this is mere, and debatable, cosmetics I'm not backpatching this.
This commit is contained in:
parent
58bc4747be
commit
14570c2828
@ -833,7 +833,6 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
|
||||
XLogRecPtr found = InvalidXLogRecPtr;
|
||||
uint32 pageHeaderSize;
|
||||
XLogPageHeader header;
|
||||
XLogRecord *record;
|
||||
int readLen;
|
||||
char *errormsg;
|
||||
|
||||
@ -875,7 +874,7 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
|
||||
* because either we're at the first record after the beginning of a page
|
||||
* or we just jumped over the remaining data of a continuation.
|
||||
*/
|
||||
while ((record = XLogReadRecord(state, tmpRecPtr, &errormsg)))
|
||||
while (XLogReadRecord(state, tmpRecPtr, &errormsg) != NULL)
|
||||
{
|
||||
/* continue after the record */
|
||||
tmpRecPtr = InvalidXLogRecPtr;
|
||||
|
Loading…
Reference in New Issue
Block a user