@@ -647,9 +647,9 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
647647 if (current .backup_mode != BACKUP_MODE_FULL )
648648 {
649649 dest_filelist = parray_new ();
650- dir_list_file (dest_filelist , dest_pgdata ,
651- true, true, false, backup_logs , true, 0 , FIO_LOCAL_HOST );
650+ db_list_dir (dest_filelist , dest_pgdata , true, backup_logs , 0 );
652651 filter_filelist (dest_filelist , dest_pgdata , exclude_absolute_paths_list , exclude_relative_paths_list , "Destination" );
652+ exclude_files (dest_filelist , backup_logs );
653653
654654 // fill dest_redo.lsn and dest_redo.tli
655655 get_redo (FIO_LOCAL_HOST , dest_pgdata , & dest_redo );
@@ -714,12 +714,8 @@ do_catchup(const char *source_pgdata, const char *dest_pgdata, int num_threads,
714714 source_filelist = parray_new ();
715715
716716 /* list files with the logical path. omit $PGDATA */
717- if (fio_is_remote (FIO_DB_HOST ))
718- fio_list_dir (source_filelist , source_pgdata ,
719- true, true, false, backup_logs , true, 0 );
720- else
721- dir_list_file (source_filelist , source_pgdata ,
722- true, true, false, backup_logs , true, 0 , FIO_LOCAL_HOST );
717+ db_list_dir (source_filelist , source_pgdata , true, backup_logs , 0 );
718+ exclude_files (source_filelist , backup_logs );
723719
724720 //REVIEW FIXME. Let's fix that before release.
725721 // TODO what if wal is not a dir (symlink to a dir)?
0 commit comments