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:
parent
835b5e4185
commit
b1413d5d60
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user