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 0b7e815ca58..f61928b4e2c 100644 --- a/src/mongo/db/matcher/extensions_callback_real.cpp +++ b/src/mongo/db/matcher/extensions_callback_real.cpp @@ -36,8 +36,8 @@ namespace mongo { -ExtensionsCallbackReal::ExtensionsCallbackReal(OperationContext* txn, const NamespaceString* nss) - : _txn(txn), _nss(nss) {} +ExtensionsCallbackReal::ExtensionsCallbackReal(OperationContext* opCtx, const NamespaceString* nss) + : _opCtx(opCtx), _nss(nss) {} StatusWithMatchExpression ExtensionsCallbackReal::parseText(BSONElement text) const { auto textParams = extractTextMatchExpressionParams(text); @@ -46,7 +46,7 @@ StatusWithMatchExpression ExtensionsCallbackReal::parseText(BSONElement text) co } auto exp = stdx::make_unique<TextMatchExpression>(); - Status status = exp->init(_txn, *_nss, std::move(textParams.getValue())); + Status status = exp->init(_opCtx, *_nss, std::move(textParams.getValue())); if (!status.isOK()) { return status; } @@ -59,7 +59,7 @@ StatusWithMatchExpression ExtensionsCallbackReal::parseWhere(BSONElement where) return whereParams.getStatus(); } - auto exp = stdx::make_unique<WhereMatchExpression>(_txn, std::move(whereParams.getValue())); + auto exp = stdx::make_unique<WhereMatchExpression>(_opCtx, std::move(whereParams.getValue())); Status status = exp->init(_nss->db()); if (!status.isOK()) { return status; |