Skip to content

Commit 7cadc33

Browse files
committed
[PBCKP-146] fix filesize filling
file->size were not filled while reading backup filelist. That lead to excess non-data file backups.
1 parent 693bffe commit 7cadc33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/catalog.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,8 @@ get_backup_filelist(pgBackup *backup, bool strict)
11371137
file->uncompressed_size = uncompressed_size;
11381138
else
11391139
file->uncompressed_size = write_size;
1140+
if (!file->is_datafile || file->is_cfs)
1141+
file->size = file->uncompressed_size;
11401142

11411143
if (file->external_dir_num == 0 && S_ISREG(file->mode))
11421144
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy