diff options
author | James Wahlin <james@mongodb.com> | 2017-11-14 16:16:01 -0500 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2017-11-17 08:43:35 -0500 |
commit | 368f337eae2aab77b727fb91beb2d2bdd64ac53a (patch) | |
tree | 7183e5a9ba023927623ac7e31a34e70198ed6fb5 /src/mongo/db/matcher | |
parent | 4edcb8195a1ad4ffa20b9840c323913894376cdb (diff) | |
download | mongo-368f337eae2aab77b727fb91beb2d2bdd64ac53a.tar.gz |
SERVER-31962 Replace Variables::hasUserDefinedValue() with const val chk
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r-- | src/mongo/db/matcher/expression_expr_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_expr_test.cpp b/src/mongo/db/matcher/expression_expr_test.cpp index 7a89e366865..7e3208047c0 100644 --- a/src/mongo/db/matcher/expression_expr_test.cpp +++ b/src/mongo/db/matcher/expression_expr_test.cpp @@ -617,7 +617,7 @@ TEST(ExprMatchTest, IdenticalPostOptimizedExpressionsAreEquivalent) { TEST(ExprMatchTest, ExpressionOptimizeRewritesVariableDereferenceAsConstant) { const boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); auto varId = expCtx->variablesParseState.defineVariable("var"); - expCtx->variables.setValue(varId, Value(4)); + expCtx->variables.setConstantValue(varId, Value(4)); BSONObj expression = BSON("$expr" << "$$var"); |