mirror of https://github.com/citusdata/citus.git
Don't error for ENOENT in CitusRemoveDirectory.
For concurrency reasons, this can happen even if initial stat succeeded.pull/3421/head
parent
4fbf9a290a
commit
1dc19215eb
|
@ -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