1
0
Fork 0

changed wrong comments

This commit is contained in:
Jan Steemann 2014-08-27 23:54:06 +02:00
parent b10ae65d58
commit 37295fb2b1
1 changed files with 2 additions and 5 deletions

View File

@ -135,10 +135,7 @@ int triagens::aql::moveCalculationsUpRule (Optimizer* opt,
continue;
}
auto neededVars = n->getVariablesUsedHere();
// sort the list of variables that the expression needs as its input
// (sorting is needed for intersection later)
std::sort(neededVars.begin(), neededVars.end(), &Variable::Comparator);
auto const neededVars = n->getVariablesUsedHere();
std::vector<ExecutionNode*> stack;
for (auto dep : n->getDependencies()) {
@ -260,7 +257,7 @@ int triagens::aql::moveFiltersUpRule (Optimizer* opt,
// first, unlink the filter from the plan
plan->unlinkNode(n);
// and re-insert into before the current node
// and re-insert into plan in front of the current node
plan->insertDependency(current, n);
modified = true;
}