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 (! valid){ // ranges are not valid . . .
|
||||
std::cout << "INVALID RANGE!\n";
|
||||
|
||||
auto newPlan = _plan->clone();
|
||||
try {
|
||||
|
@ -628,9 +627,11 @@ int triagens::aql::useIndexRange (Optimizer* opt,
|
|||
ExecutionPlan* plan,
|
||||
int level,
|
||||
Optimizer::PlanList& out) {
|
||||
out.push_back(plan, level);
|
||||
|
||||
std::vector<ExecutionNode*> nodes
|
||||
= plan->findNodesOfType(triagens::aql::ExecutionNode::FILTER, true);
|
||||
|
||||
|
||||
for (auto n : nodes) {
|
||||
auto nn = static_cast<FilterNode*>(n);
|
||||
auto invars = nn->getVariablesUsedHere();
|
||||
|
@ -639,8 +640,6 @@ int triagens::aql::useIndexRange (Optimizer* opt,
|
|||
nn->walk(&finder);
|
||||
}
|
||||
|
||||
out.push_back(plan, level);
|
||||
|
||||
return TRI_ERROR_NO_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue