1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-12-12 11:45:24 +02:00

[refer #PGPRO-1745] Fix reading zeroed page

This commit is contained in:
Konstantin Knizhnik 2019-03-16 15:32:39 +03:00
parent c94b182964
commit a43a0e3289

View File

@ -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 */
if (page_lsn >= req->horizonLsn)
if (page_lsn >= req->horizonLsn || page_lsn == InvalidXLogRecPtr)
{
char write_buffer[BLCKSZ*2];
BackupPageHeader* bph = (BackupPageHeader*)write_buffer;