Skip to content

Commit f165001

Browse files
committed
honest file->n_blocks for PAGE and PTRACK backups
1 parent 506afe5 commit f165001

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,9 @@ backup_files(void *arg)
20282028
join_path_components(to_path, arguments->to_root,
20292029
file->path + strlen(arguments->from_root) + 1);
20302030

2031+
if (current.backup_mode != BACKUP_MODE_FULL)
2032+
file->n_blocks = file->size/BLCKSZ;
2033+
20312034
/* backup block by block if datafile AND not compressed by cfs*/
20322035
if (!backup_data_file(arguments, to_path, file,
20332036
arguments->prev_start_lsn,

0 commit comments

Comments
 (0)