1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-17 21:18:00 +02:00

Fix passing error in fio_send_pages

This commit is contained in:
Konstantin Knizhnik 2019-06-28 10:09:03 +03:00
parent eb2a397a01
commit 5f840ba436

View File

@ -1150,8 +1150,7 @@ int fio_send_pages(FILE* in, FILE* out, pgFile *file,
if ((int)hdr.arg < 0) /* read error */
{
errno = -(int)hdr.arg;
return -1;
return (int)hdr.arg;
}
blknum = hdr.arg;