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:
parent
58f02c1af4
commit
47a7bed931
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user