From 8c79f80a154b337e28a4d9e364bca048f3668f21 Mon Sep 17 00:00:00 2001 From: David Percy Date: Thu, 17 Sep 2020 04:42:36 +0000 Subject: SERVER-48851 CST test-command and $expr, $text, $where, $mod --- src/mongo/db/query/canonical_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/query/canonical_query.cpp') diff --git a/src/mongo/db/query/canonical_query.cpp b/src/mongo/db/query/canonical_query.cpp index 0e2945eae21..9154bf6bbd7 100644 --- a/src/mongo/db/query/canonical_query.cpp +++ b/src/mongo/db/query/canonical_query.cpp @@ -122,7 +122,7 @@ StatusWith> CanonicalQuery::canonicalize( StatusWithMatchExpression statusWithMatcher = [&]() -> StatusWithMatchExpression { if (getTestCommandsEnabled() && internalQueryEnableCSTParser.load()) { try { - return cst::parseToMatchExpression(qr->getFilter(), newExpCtx); + return cst::parseToMatchExpression(qr->getFilter(), newExpCtx, extensionsCallback); } catch (const DBException& ex) { return ex.toStatus(); } -- cgit v1.2.1