mirror of https://gitee.com/bigwinds/arangodb
changed wrong comments
This commit is contained in:
parent
b10ae65d58
commit
37295fb2b1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue