mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
use portable unlink in delete_walfiles_in_tli()
This commit is contained in:
+1
-1
@@ -933,7 +933,7 @@ delete_walfiles_in_tli(XLogRecPtr keep_lsn, timelineInfo *tlinfo,
|
||||
}
|
||||
|
||||
/* unlink segment */
|
||||
rc = unlink(wal_file->file.path);
|
||||
rc = fio_unlink(wal_file->file.path, FIO_BACKUP_HOST);
|
||||
if (rc < 0)
|
||||
{
|
||||
/* Missing file is not considered as error condition */
|
||||
|
||||
@@ -816,6 +816,7 @@ int fio_unlink(char const* path, fio_location location)
|
||||
IO_CHECK(fio_write_all(fio_stdout, &hdr, sizeof(hdr)), sizeof(hdr));
|
||||
IO_CHECK(fio_write_all(fio_stdout, path, path_len), path_len);
|
||||
|
||||
// TODO: error is swallowed ?
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user