1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-13 14:58:35 +02:00

bugfix: during backup do not close file if file size is not the mulptiple of BLCKSZ

This commit is contained in:
Grigory Smolkin 2019-06-20 18:57:47 +03:00
parent 835b5e4185
commit b1413d5d60

View File

@ -585,10 +585,7 @@ backup_data_file(backup_files_arg* arguments,
}
if (file->size % BLCKSZ != 0)
{
fio_fclose(in);
elog(WARNING, "File: %s, invalid file size %zu", file->path, file->size);
}
/*
* Compute expected number of blocks in the file.