We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be78ca6 commit fdfb074Copy full SHA for fdfb074
src/data.c
@@ -667,7 +667,7 @@ backup_data_file(backup_files_arg* arguments,
667
*/
668
if (n_blocks_read != 0 && n_blocks_read == n_blocks_skipped)
669
{
670
- if (remove(to_path) == -1)
+ if (fio_unlink(to_path, FIO_BACKUP_HOST) == -1)
671
elog(ERROR, "cannot remove file \"%s\": %s", to_path,
672
strerror(errno));
673
return false;
src/delete.c
@@ -296,7 +296,7 @@ delete_backup_files(pgBackup *backup)
296
elog(INFO, "Progress: (%zd/%zd). Process file \"%s\"",
297
i + 1, num_files, file->path);
298
299
- pgFileDelete(file);
+ fio_unlink(file->path, FIO_BACKUP_HOST);
300
}
301
302
parray_walk(files, pgFileFree);
0 commit comments