1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-22 11:44:34 +02:00

honest file->n_blocks for PAGE and PTRACK backups

This commit is contained in:
Grigory Smolkin 2020-01-28 20:44:24 +03:00
parent 506afe5c12
commit f165001c8d

View File

@ -2028,6 +2028,9 @@ backup_files(void *arg)
join_path_components(to_path, arguments->to_root,
file->path + strlen(arguments->from_root) + 1);
if (current.backup_mode != BACKUP_MODE_FULL)
file->n_blocks = file->size/BLCKSZ;
/* backup block by block if datafile AND not compressed by cfs*/
if (!backup_data_file(arguments, to_path, file,
arguments->prev_start_lsn,