mirror of https://gitee.com/bigwinds/arangodb
remove debug prints.
This commit is contained in:
parent
67894665f4
commit
e1ee728a75
|
@ -434,7 +434,6 @@ class FilterToEnumCollFinder : public WalkerWorker<ExecutionNode> {
|
||||||
|
|
||||||
if (! _canThrow) {
|
if (! _canThrow) {
|
||||||
if (! valid){ // ranges are not valid . . .
|
if (! valid){ // ranges are not valid . . .
|
||||||
std::cout << "INVALID RANGE!\n";
|
|
||||||
|
|
||||||
auto newPlan = _plan->clone();
|
auto newPlan = _plan->clone();
|
||||||
try {
|
try {
|
||||||
|
@ -628,9 +627,11 @@ int triagens::aql::useIndexRange (Optimizer* opt,
|
||||||
ExecutionPlan* plan,
|
ExecutionPlan* plan,
|
||||||
int level,
|
int level,
|
||||||
Optimizer::PlanList& out) {
|
Optimizer::PlanList& out) {
|
||||||
|
out.push_back(plan, level);
|
||||||
|
|
||||||
std::vector<ExecutionNode*> nodes
|
std::vector<ExecutionNode*> nodes
|
||||||
= plan->findNodesOfType(triagens::aql::ExecutionNode::FILTER, true);
|
= plan->findNodesOfType(triagens::aql::ExecutionNode::FILTER, true);
|
||||||
|
|
||||||
for (auto n : nodes) {
|
for (auto n : nodes) {
|
||||||
auto nn = static_cast<FilterNode*>(n);
|
auto nn = static_cast<FilterNode*>(n);
|
||||||
auto invars = nn->getVariablesUsedHere();
|
auto invars = nn->getVariablesUsedHere();
|
||||||
|
@ -639,8 +640,6 @@ int triagens::aql::useIndexRange (Optimizer* opt,
|
||||||
nn->walk(&finder);
|
nn->walk(&finder);
|
||||||
}
|
}
|
||||||
|
|
||||||
out.push_back(plan, level);
|
|
||||||
|
|
||||||
return TRI_ERROR_NO_ERROR;
|
return TRI_ERROR_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue