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:
parent
04b96de31f
commit
98c67194a6
10
src/delete.c
10
src/delete.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user