diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_expr_test.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_expr_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/expression_expr_test.cpp b/src/mongo/db/matcher/expression_expr_test.cpp index 846a43f602f..276c4ea1eb9 100644 --- a/src/mongo/db/matcher/expression_expr_test.cpp +++ b/src/mongo/db/matcher/expression_expr_test.cpp @@ -705,7 +705,7 @@ TEST(ExprMatchTest, OptimizingAnAlreadyOptimizedCloneIsANoop) { // Clone the match expression and optimize it again. We expect the twice-optimized match // expression to be equivalent to the once-optimized one. - std::unique_ptr<MatchExpression> doublyOptimized = singlyOptimized->shallowClone(); + std::unique_ptr<MatchExpression> doublyOptimized = singlyOptimized->clone(); doublyOptimized = MatchExpression::optimize(std::move(doublyOptimized)); ASSERT_TRUE(doublyOptimized->equivalent(singlyOptimized.get())); } @@ -715,8 +715,8 @@ TEST(ExprMatchTest, ShallowClonedExpressionIsEquivalentToOriginal) { boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); ExprMatchExpression pipelineExpr(expression.firstElement(), std::move(expCtx)); - auto shallowClone = pipelineExpr.shallowClone(); - ASSERT_TRUE(pipelineExpr.equivalent(shallowClone.get())); + auto clone = pipelineExpr.clone(); + ASSERT_TRUE(pipelineExpr.equivalent(clone.get())); } TEST(ExprMatchTest, OptimizingExprAbsorbsAndOfAnd) { |