mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
commit
aec1ea970a
|
@ -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);
|
||||
|
|
|
@ -132,7 +132,10 @@ namespace triagens {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int shutdown () {
|
||||
return _root->shutdown();
|
||||
if (_root != nullptr) {
|
||||
return _root->shutdown();
|
||||
}
|
||||
else return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -976,6 +976,7 @@ std::string Query::getStateString () const {
|
|||
|
||||
void Query::cleanupPlanAndEngine () {
|
||||
if (_engine != nullptr) {
|
||||
_engine->shutdown();
|
||||
delete _engine;
|
||||
_engine = nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue