diff options
Diffstat (limited to 'src/mongo/db/matcher/matcher.cpp')
-rw-r--r-- | src/mongo/db/matcher/matcher.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/matcher/matcher.cpp b/src/mongo/db/matcher/matcher.cpp index faf0f6f1170..5648a4f15d5 100644 --- a/src/mongo/db/matcher/matcher.cpp +++ b/src/mongo/db/matcher/matcher.cpp @@ -42,11 +42,13 @@ namespace mongo { Matcher::Matcher(const BSONObj& pattern, + const CollatorInterface* collator, + const boost::intrusive_ptr<ExpressionContext>& expCtx, const ExtensionsCallback& extensionsCallback, - const CollatorInterface* collator) + const MatchExpressionParser::AllowedFeatureSet allowedFeatures) : _pattern(pattern) { - StatusWithMatchExpression statusWithMatcher = - MatchExpressionParser::parse(pattern, extensionsCallback, collator); + StatusWithMatchExpression statusWithMatcher = MatchExpressionParser::parse( + pattern, collator, expCtx, extensionsCallback, allowedFeatures); uassert(16810, mongoutils::str::stream() << "bad query: " << statusWithMatcher.getStatus().toString(), statusWithMatcher.isOK()); |