mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
honest file->n_blocks for PAGE and PTRACK backups
This commit is contained in:
@@ -2028,6 +2028,9 @@ backup_files(void *arg)
|
|||||||
join_path_components(to_path, arguments->to_root,
|
join_path_components(to_path, arguments->to_root,
|
||||||
file->path + strlen(arguments->from_root) + 1);
|
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*/
|
/* backup block by block if datafile AND not compressed by cfs*/
|
||||||
if (!backup_data_file(arguments, to_path, file,
|
if (!backup_data_file(arguments, to_path, file,
|
||||||
arguments->prev_start_lsn,
|
arguments->prev_start_lsn,
|
||||||
|
|||||||
Reference in New Issue
Block a user