Skip to content

Commit ad20823

Browse files
committed
Use pgFileComparePathWithExternalDesc for to_files during merging files
1 parent 21230cb commit ad20823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
235235
DATABASE_FILE_LIST);
236236
to_files = dir_read_file_list(NULL, NULL, control_file, FIO_BACKUP_HOST);
237237
/* To delete from leaf, sort in reversed order */
238-
parray_qsort(to_files, pgFileComparePathDesc);
238+
parray_qsort(to_files, pgFileComparePathWithExternalDesc);
239239
/*
240240
* Get list of files which need to be moved.
241241
*/

0 commit comments

Comments
 (0)