diff options
Diffstat (limited to 'src/mongo/db/exec/subplan.cpp')
-rw-r--r-- | src/mongo/db/exec/subplan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/subplan.cpp b/src/mongo/db/exec/subplan.cpp index f8b30a6a7a3..021bf3efd5a 100644 --- a/src/mongo/db/exec/subplan.cpp +++ b/src/mongo/db/exec/subplan.cpp @@ -161,7 +161,7 @@ std::unique_ptr<MatchExpression> SubplanStage::rewriteToRootedOr( } // Normalize and sort the resulting match expression. - orChild = MatchExpression::optimize(std::move(orChild)); + orChild = std::unique_ptr<MatchExpression>(CanonicalQuery::normalizeTree(orChild.release())); CanonicalQuery::sortTree(orChild.get()); return orChild; |