1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-06-21 01:34:15 +02:00

fix fio_send_file_local

This commit is contained in:
Yura Sokolov
2022-10-24 17:28:07 +03:00
parent 2eaeb942c6
commit 5f71f7710f
+5 -5
View File
@@ -2933,13 +2933,13 @@ fio_send_file_local(const char *from_fullpath, FILE* out, bool cut_zero_tail,
if (st.write_size < st.read_size)
{
/*
* We still need to calc crc for zero tail.
*/
fio_send_file_crc(&st, NULL, 0);
if (!cut_zero_tail)
{
/*
* We still need to calc crc for zero tail.
*/
fio_send_file_crc(&st, NULL, 0);
/*
* Let's write single zero byte to the end of file to restore
* logical size.