Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit065d981

Browse files
committed
Fix remote delta backup
1 parent577a8d9 commit065d981

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/catalog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ pgBackupGetBackupMode(pgBackup *backup)
247247
}
248248

249249
staticbool
250-
IsDir(constchar*dirpath,constchar*entry)
250+
IsDir(constchar*dirpath,constchar*entry,fio_locationlocation)
251251
{
252252
charpath[MAXPGPATH];
253253
structstatst;
254254

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

257-
returnstat(path,&st)==0&&S_ISDIR(st.st_mode);
257+
returnfio_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
chardata_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)

[8]ページ先頭

©2009-2025 Movatter.jp