Skip to content

Commit cd2655b

Browse files
committed
bugfix: correctly calculate backup WAL size for STREAM backup
1 parent 8350e17 commit cd2655b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/stream.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ add_walsegment_to_filelist(parray *filelist, uint32 timeline, XLogRecPtr xlogpos
427427
join_path_components(wal_segment_relpath, PG_XLOG_DIR, wal_segment_name);
428428

429429
file = pgFileNew(wal_segment_fullpath, wal_segment_relpath, false, 0, FIO_BACKUP_HOST);
430-
file->name = file->rel_path;
431430

432431
/*
433432
* Check if file is already in the list
@@ -457,7 +456,7 @@ add_walsegment_to_filelist(parray *filelist, uint32 timeline, XLogRecPtr xlogpos
457456
parray_append(filelist, file);
458457
}
459458

460-
/* Append streamed WAL segment to filelist */
459+
/* Append history file to filelist */
461460
void
462461
add_history_file_to_filelist(parray *filelist, uint32 timeline, char *basedir)
463462
{
@@ -475,7 +474,6 @@ add_history_file_to_filelist(parray *filelist, uint32 timeline, char *basedir)
475474
join_path_components(relpath, PG_XLOG_DIR, filename);
476475

477476
file = pgFileNew(fullpath, relpath, false, 0, FIO_BACKUP_HOST);
478-
file->name = file->rel_path;
479477

480478
/* calculate crc */
481479
file->crc = pgFileGetCRC(fullpath, true, false);

0 commit comments

Comments
 (0)