Skip to content

Commit 79c8ea3

Browse files
committed
fix fio_list_dir
1 parent 206cb04 commit 79c8ea3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/restore.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,10 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain,
661661

662662
/* TODO: external directorues */
663663
if (fio_is_remote(FIO_DB_HOST))
664-
fio_list_dir(pgdata_files, pgdata_path, false, true, false, false, 0);
664+
fio_list_dir(pgdata_files, pgdata_path, false, true, false, false, true, 0);
665665
else
666666
dir_list_file(pgdata_files, pgdata_path,
667-
false, true, false, false, 0, FIO_LOCAL_HOST);
667+
false, true, false, false, true, 0, FIO_LOCAL_HOST);
668668

669669
parray_qsort(pgdata_files, pgFileCompareRelPathWithExternalDesc);
670670
elog(INFO, "Destination directory content extracted, time elapsed:");
@@ -933,6 +933,7 @@ restore_files(void *arg)
933933
dest_file->is_datafile && !dest_file->is_cfs &&
934934
dest_file->n_blocks > 0)
935935
{
936+
elog(INFO, "HELLO");
936937
/* remote mode */
937938
if (fio_is_remote(FIO_DB_HOST))
938939
checksum_map = fio_get_checksum_map(to_fullpath, arguments->dest_backup->checksum_version,

0 commit comments

Comments
 (0)