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 const* current = (*it).nodes.front();
|
||||||
ExecutionNode* previous = nullptr;
|
ExecutionNode* previous = nullptr;
|
||||||
|
|
||||||
|
// TODO: fix instanciation here as in DBserver case
|
||||||
while (current != nullptr) {
|
while (current != nullptr) {
|
||||||
auto clone = current->clone(newPlan, false, true);
|
auto clone = current->clone(newPlan, false, true);
|
||||||
newPlan->registerNode(clone);
|
newPlan->registerNode(clone);
|
||||||
|
|
|
@ -132,8 +132,11 @@ namespace triagens {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int shutdown () {
|
int shutdown () {
|
||||||
|
if (_root != nullptr) {
|
||||||
return _root->shutdown();
|
return _root->shutdown();
|
||||||
}
|
}
|
||||||
|
else return 0;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief getSome
|
/// @brief getSome
|
||||||
|
|
|
@ -976,6 +976,7 @@ std::string Query::getStateString () const {
|
||||||
|
|
||||||
void Query::cleanupPlanAndEngine () {
|
void Query::cleanupPlanAndEngine () {
|
||||||
if (_engine != nullptr) {
|
if (_engine != nullptr) {
|
||||||
|
_engine->shutdown();
|
||||||
delete _engine;
|
delete _engine;
|
||||||
_engine = nullptr;
|
_engine = nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue