1
0
Fork 0

Don't modify a finalized node. (#10419)

This commit is contained in:
Dan Larkin-York 2019-11-13 16:16:09 -05:00 committed by Jan
parent ff93f45892
commit 330c4a63b4
1 changed files with 2 additions and 1 deletions

View File

@ -995,7 +995,8 @@ void arangodb::aql::sortInValuesRule(Optimizer* opt, std::unique_ptr<ExecutionPl
oldParent->addDependency(calculationNode);
setter->setParent(calculationNode);
AstNode* clone = ast->clone(inNode);
AstNode* clone = ast->shallowCopyForModify(inNode);
TRI_DEFER(FINALIZE_SUBTREE(clone));
// set sortedness bit for the IN operator
clone->setBoolValue(true);
// finally adjust the variable inside the IN calculation