1
0
Fork 0

Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel

This commit is contained in:
Jan Steemann 2014-11-07 14:34:25 +01:00
commit 7618d03a10
3 changed files with 23 additions and 8 deletions

View File

@ -424,12 +424,14 @@ void RestAqlHandler::useQuery (std::string const& operation,
try {
handleUseQuery(operation, query, queryJson);
try {
_queryRegistry->close(_vocbase, _qId);
}
catch (...) {
// ignore errors on unregistering
// an error might occur if "shutdown" is called
if (_qId != 0) {
try {
_queryRegistry->close(_vocbase, _qId);
}
catch (...) {
// ignore errors on unregistering
// an error might occur if "shutdown" is called
}
}
}
catch (triagens::arango::Exception const& ex) {
@ -853,6 +855,7 @@ void RestAqlHandler::handleUseQuery (std::string const& operation,
// delete the query from the registry
_queryRegistry->destroy(_vocbase, _qId, errorCode);
_qId = 0;
}
catch (...) {
LOG_ERROR("shutdown lead to an exception");

File diff suppressed because one or more lines are too long

View File

@ -77,6 +77,7 @@
<% if(isSystem) { %>
<option value="#logs">Logs</option>
<option value="#databases">Databases</option>
<% } %>