diff options
Diffstat (limited to 'src/mongo/db/matcher/extensions_callback_real.cpp')
-rw-r--r-- | src/mongo/db/matcher/extensions_callback_real.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/matcher/extensions_callback_real.cpp b/src/mongo/db/matcher/extensions_callback_real.cpp index 34d2dfc4a26..07fb7b38935 100644 --- a/src/mongo/db/matcher/extensions_callback_real.cpp +++ b/src/mongo/db/matcher/extensions_callback_real.cpp @@ -73,11 +73,11 @@ StatusWithMatchExpression ExtensionsCallbackReal::parseWhere( // Desugar $where to $expr. The $where function is invoked through a $function expression by // passing the document as $$CURRENT. auto fnExpression = ExpressionFunction::createForWhere( - expCtx, + expCtx.get(), ExpressionArray::create( - expCtx, - make_vector<boost::intrusive_ptr<Expression>>( - ExpressionFieldPath::parse(expCtx, "$$CURRENT", expCtx->variablesParseState))), + expCtx.get(), + make_vector<boost::intrusive_ptr<Expression>>(ExpressionFieldPath::parse( + expCtx.get(), "$$CURRENT", expCtx->variablesParseState))), code, ExpressionFunction::kJavaScript); |