1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-19 11:30:07 +02:00

Fix compression in remote backup

This commit is contained in:
Konstantin Knizhnik 2019-02-27 19:10:06 +03:00
parent 58f02c1af4
commit 47a7bed931

View File

@ -974,7 +974,7 @@ static void fio_send_pages_impl(int fd, int out, fio_send_request* req)
memcpy(write_buffer + sizeof(BackupPageHeader), read_buffer, BLCKSZ);
bph->compressed_size = BLCKSZ;
}
hdr.size += bph->compressed_size;
hdr.size += MAXALIGN(bph->compressed_size);
}
IO_CHECK(fio_write_all(out, &hdr, sizeof(hdr)), sizeof(hdr));
IO_CHECK(fio_write_all(out, write_buffer, hdr.size), hdr.size);