mirror of https://gitee.com/bigwinds/arangodb
work around race condition occuring during cluster startup on same machine.
This commit is contained in:
parent
df046a8091
commit
d74299770b
|
@ -449,8 +449,15 @@ static int CreateBaseApplicationDirectory (char const* basePath,
|
|||
path);
|
||||
}
|
||||
else {
|
||||
LOG_ERROR("unable to create base application directory %s",
|
||||
errorMessage.c_str());
|
||||
if ((res != TRI_ERROR_FILE_EXISTS) || (! TRI_IsDirectory(path))) {
|
||||
LOG_ERROR("unable to create base application directory %s",
|
||||
errorMessage.c_str());
|
||||
}
|
||||
else {
|
||||
LOG_INFO("otherone created base application directory '%s'",
|
||||
path);
|
||||
res = TRI_ERROR_NO_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue