mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-13 14:58:35 +02:00
PGPRO-427: Add header size into WAL record start pointer
This commit is contained in:
parent
6e0f5bb68b
commit
e2b2dee05e
@ -179,6 +179,9 @@ doExtractPageMap(void *arg)
|
||||
/* Adjust next record position */
|
||||
XLogSegNoOffsetToRecPtr(extract_arg->private_data.xlogsegno, 0,
|
||||
extract_arg->startpoint);
|
||||
/* Skip over the page header */
|
||||
extract_arg->startpoint += SizeOfXLogLongPHD;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -283,6 +286,8 @@ extractPageMap(const char *archivedir, XLogRecPtr startpoint, TimeLineID tli,
|
||||
if (nextSegNoToRead > endSegNo)
|
||||
break;
|
||||
XLogSegNoOffsetToRecPtr(nextSegNoToRead, 0, startpoint);
|
||||
/* Skip over the page header */
|
||||
startpoint += SizeOfXLogLongPHD;
|
||||
|
||||
threads_need++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user