mirror of https://github.com/citusdata/citus.git
Merge pull request #3421 from citusdata/allow_noent_in_remove
Don't error for ENOENT in CitusRemoveDirectory.pull/3419/head
commit
65dfcaa54b
|
@ -783,7 +783,7 @@ CitusRemoveDirectory(StringInfo filename)
|
|||
removed = unlink(filename->data);
|
||||
}
|
||||
|
||||
if (removed != 0)
|
||||
if (removed != 0 && errno != ENOENT)
|
||||
{
|
||||
ereport(ERROR, (errcode_for_file_access(),
|
||||
errmsg("could not remove file \"%s\": %m", filename->data)));
|
||||
|
|
Loading…
Reference in New Issue