mirror of https://gitee.com/bigwinds/arangodb
added an assert (#10358)
This commit is contained in:
parent
a7ec369d0b
commit
6fa2f2abc1
|
@ -1621,6 +1621,7 @@ bool Expression::canRunOnDBServer() {
|
|||
TRI_ASSERT(_node != nullptr);
|
||||
return _node->canRunOnDBServer();
|
||||
}
|
||||
|
||||
bool Expression::isDeterministic() {
|
||||
if (_type == UNPROCESSED) {
|
||||
initExpression();
|
||||
|
|
|
@ -7253,10 +7253,12 @@ void arangodb::aql::moveFiltersIntoEnumerateRule(Optimizer* opt, std::unique_ptr
|
|||
if (!expr->isDeterministic() || !expr->canRunOnDBServer()) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (expr->node() == nullptr) {
|
||||
break;
|
||||
}
|
||||
|
||||
TRI_ASSERT(!expr->willUseV8());
|
||||
found.clear();
|
||||
Ast::getReferencedVariables(expr->node(), found);
|
||||
if (found.size() == 1 && found.find(outVariable) != found.end()) {
|
||||
|
|
Loading…
Reference in New Issue