From b19f95495d1df437722e6a0c85ea5ca6f91cdd8b Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Mon, 21 Aug 2017 15:31:06 -0400 Subject: SERVER-29840 Add allowed features bitmask to MatchExpressionParser::parse --- src/mongo/dbtests/query_stage_fetch.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mongo/dbtests/query_stage_fetch.cpp') diff --git a/src/mongo/dbtests/query_stage_fetch.cpp b/src/mongo/dbtests/query_stage_fetch.cpp index ee8c5ec2b19..e866d2df9c9 100644 --- a/src/mongo/dbtests/query_stage_fetch.cpp +++ b/src/mongo/dbtests/query_stage_fetch.cpp @@ -43,7 +43,6 @@ #include "mongo/db/exec/queued_data_stage.h" #include "mongo/db/json.h" #include "mongo/db/matcher/expression_parser.h" -#include "mongo/db/matcher/extensions_callback_disallow_extensions.h" #include "mongo/dbtests/dbtests.h" #include "mongo/stdx/memory.h" @@ -195,8 +194,8 @@ public: // Make the filter. BSONObj filterObj = BSON("foo" << 6); const CollatorInterface* collator = nullptr; - StatusWithMatchExpression statusWithMatcher = MatchExpressionParser::parse( - filterObj, ExtensionsCallbackDisallowExtensions(), collator); + StatusWithMatchExpression statusWithMatcher = + MatchExpressionParser::parse(filterObj, collator); verify(statusWithMatcher.isOK()); unique_ptr filterExpr = std::move(statusWithMatcher.getValue()); -- cgit v1.2.1