mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-04 15:51:29 +02:00
[refer #PGPRO-1745] Fix reading zeroed page
This commit is contained in:
parent
c94b182964
commit
a43a0e3289
@ -1154,7 +1154,7 @@ static void fio_send_pages_impl(int fd, int out, fio_send_request* req)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* horizonLsn is not 0 for delta backup. As far as unsigned number are always greater or equal than zero, there is no sense to add more checks */
|
/* horizonLsn is not 0 for delta backup. As far as unsigned number are always greater or equal than zero, there is no sense to add more checks */
|
||||||
if (page_lsn >= req->horizonLsn)
|
if (page_lsn >= req->horizonLsn || page_lsn == InvalidXLogRecPtr)
|
||||||
{
|
{
|
||||||
char write_buffer[BLCKSZ*2];
|
char write_buffer[BLCKSZ*2];
|
||||||
BackupPageHeader* bph = (BackupPageHeader*)write_buffer;
|
BackupPageHeader* bph = (BackupPageHeader*)write_buffer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user