1
0
Fork 0

work around race condition occuring during cluster startup on same machine.

This commit is contained in:
Willi Goesgens 2015-02-24 18:00:52 +01:00
parent df046a8091
commit d74299770b
1 changed files with 9 additions and 2 deletions

View File

@ -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;
}
}
}