mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
Fix remote delta backup
This commit is contained in:
+1
-1
@@ -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
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user