1
0
Fork 0

remove debug prints.

This commit is contained in:
James 2014-08-29 14:41:20 +02:00
parent 67894665f4
commit e1ee728a75
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}