Fix remote delta backup

This commit is contained in:
Konstantin Knizhnik
2019-01-18 00:43:39 +03:00
parent be78ca6ee2
commit fdfb074703
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -667,7 +667,7 @@ backup_data_file(backup_files_arg* arguments,
*/
if (n_blocks_read != 0 && n_blocks_read == n_blocks_skipped)
{
if (remove(to_path) == -1)
if (fio_unlink(to_path, FIO_BACKUP_HOST) == -1)
elog(ERROR, "cannot remove file \"%s\": %s", to_path,
strerror(errno));
return false;
+1 -1
View File
@@ -296,7 +296,7 @@ delete_backup_files(pgBackup *backup)
elog(INFO, "Progress: (%zd/%zd). Process file \"%s\"",
i + 1, num_files, file->path);
pgFileDelete(file);
fio_unlink(file->path, FIO_BACKUP_HOST);
}
parray_walk(files, pgFileFree);