1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-08 13:44:32 +02:00

Fixed removing directory for the delete command

This commit is contained in:
Victor Spirin 2018-12-18 19:00:33 +03:00
parent 04b96de31f
commit 98c67194a6

View File

@ -296,15 +296,7 @@ delete_backup_files(pgBackup *backup)
elog(INFO, "Progress: (%zd/%zd). Process file \"%s\"",
i + 1, num_files, file->path);
if (remove(file->path))
{
if (errno == ENOENT)
elog(VERBOSE, "File \"%s\" is absent", file->path);
else
elog(ERROR, "Cannot remove \"%s\": %s", file->path,
strerror(errno));
return;
}
pgFileDelete(file);
}
parray_walk(files, pgFileFree);