From 79c8ea3dabd114bcc5d8dbe440cacaf632441e9d Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Wed, 27 May 2020 01:31:55 +0300 Subject: [PATCH] fix fio_list_dir --- src/restore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/restore.c b/src/restore.c index 10a742c0..d3062a96 100644 --- a/src/restore.c +++ b/src/restore.c @@ -661,10 +661,10 @@ restore_chain(pgBackup *dest_backup, parray *parent_chain, /* TODO: external directorues */ if (fio_is_remote(FIO_DB_HOST)) - fio_list_dir(pgdata_files, pgdata_path, false, true, false, false, 0); + fio_list_dir(pgdata_files, pgdata_path, false, true, false, false, true, 0); else dir_list_file(pgdata_files, pgdata_path, - false, true, false, false, 0, FIO_LOCAL_HOST); + false, true, false, false, true, 0, FIO_LOCAL_HOST); parray_qsort(pgdata_files, pgFileCompareRelPathWithExternalDesc); elog(INFO, "Destination directory content extracted, time elapsed:"); @@ -933,6 +933,7 @@ restore_files(void *arg) dest_file->is_datafile && !dest_file->is_cfs && dest_file->n_blocks > 0) { + elog(INFO, "HELLO"); /* remote mode */ if (fio_is_remote(FIO_DB_HOST)) checksum_map = fio_get_checksum_map(to_fullpath, arguments->dest_backup->checksum_version,