mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
83911d25f8
|
@ -1282,6 +1282,7 @@ int createEdgeOnCoordinator (
|
|||
// First determine the collection ID from the name:
|
||||
shared_ptr<CollectionInfo> collinfo = ci->getCollection(dbname, collname);
|
||||
if (collinfo->empty()) {
|
||||
TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, json);
|
||||
return TRI_ERROR_ARANGO_COLLECTION_NOT_FOUND;
|
||||
}
|
||||
string collid = StringUtils::itoa(collinfo->id());
|
||||
|
|
|
@ -340,7 +340,6 @@ bool RestEdgeHandler::createDocumentCoordinator (string const& collname,
|
|||
|
||||
if (error != TRI_ERROR_NO_ERROR) {
|
||||
generateTransactionError(collname.c_str(), error);
|
||||
TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, json);
|
||||
return false;
|
||||
}
|
||||
// Essentially return the response we got from the DBserver, be it
|
||||
|
@ -348,7 +347,6 @@ bool RestEdgeHandler::createDocumentCoordinator (string const& collname,
|
|||
_response = createResponse(responseCode);
|
||||
triagens::arango::mergeResponseHeaders(_response, resultHeaders);
|
||||
_response->body().appendText(resultBody.c_str(), resultBody.size());
|
||||
TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, json);
|
||||
return responseCode >= triagens::rest::HttpResponse::BAD;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue