1
0
Fork 0

collection creation should not fail if 412 collection exists. just move on?

This commit is contained in:
Kaveh Vahedipour 2017-01-10 08:36:39 +01:00
parent dc9d8413c0
commit 75052e94f4
1 changed files with 3 additions and 1 deletions

View File

@ -1150,7 +1150,9 @@ int ClusterInfo::createCollectionCoordinator(std::string const& databaseName,
AgencyCommResult res = ac.sendTransactionWithFailover(transaction);
if (!res.successful()) {
// Only if not precondition failed
if (!res.successful() && res.httpCode() !=
(int)arangodb::rest::ResponseCode::PRECONDITION_FAILED) {
errorMsg += std::string("\n") + __FILE__ + std::to_string(__LINE__);
errorMsg += std::string("\n") + res.errorMessage();
errorMsg += std::string("\n") + res.errorDetails();