1
0
Fork 0

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

This commit is contained in:
Jan Steemann 2014-10-20 18:28:32 +02:00
commit aec1ea970a
3 changed files with 6 additions and 1 deletions

View File

@ -357,6 +357,7 @@ struct CoordinatorInstanciator : public WalkerWorker<ExecutionNode> {
ExecutionNode const* current = (*it).nodes.front();
ExecutionNode* previous = nullptr;
// TODO: fix instanciation here as in DBserver case
while (current != nullptr) {
auto clone = current->clone(newPlan, false, true);
newPlan->registerNode(clone);

View File

@ -132,7 +132,10 @@ namespace triagens {
////////////////////////////////////////////////////////////////////////////////
int shutdown () {
return _root->shutdown();
if (_root != nullptr) {
return _root->shutdown();
}
else return 0;
}
////////////////////////////////////////////////////////////////////////////////

View File

@ -976,6 +976,7 @@ std::string Query::getStateString () const {
void Query::cleanupPlanAndEngine () {
if (_engine != nullptr) {
_engine->shutdown();
delete _engine;
_engine = nullptr;
}