Skip to content

Commit a43a0e3

Browse files
committed
[refer #PGPRO-1745] Fix reading zeroed page
1 parent c94b182 commit a43a0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ static void fio_send_pages_impl(int fd, int out, fio_send_request* req)
11541154
}
11551155
}
11561156
/* 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 */
1157-
if (page_lsn >= req->horizonLsn)
1157+
if (page_lsn >= req->horizonLsn || page_lsn == InvalidXLogRecPtr)
11581158
{
11591159
char write_buffer[BLCKSZ*2];
11601160
BackupPageHeader* bph = (BackupPageHeader*)write_buffer;

0 commit comments

Comments
 (0)