Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 065d981

Browse files
committed
Fix remote delta backup
1 parent 577a8d9 commit 065d981

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/catalog.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ pgBackupGetBackupMode(pgBackup *backup)
247247
}
248248

249249
static bool
250-
IsDir(const char *dirpath, const char *entry)
250+
IsDir(const char *dirpath, const char *entry, fio_location location)
251251
{
252252
char path[MAXPGPATH];
253253
struct stat st;
254254

255255
snprintf(path, MAXPGPATH, "%s/%s", dirpath, entry);
256256

257-
return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
257+
return fio_stat(path, &st, false, location) == 0 && S_ISDIR(st.st_mode);
258258
}
259259

260260
/*
@@ -289,7 +289,7 @@ catalog_get_backup_list(time_t requested_backup_id)
289289
char data_path[MAXPGPATH];
290290

291291
/* skip not-directory entries and hidden entries */
292-
if (!IsDir(backup_instance_path, data_ent->d_name)
292+
if (!IsDir(backup_instance_path, data_ent->d_name, FIO_BACKUP_HOST)
293293
|| data_ent->d_name[0] == '.')
294294
continue;
295295

0 commit comments

Comments
 (0)