From e289b78c61033674f6440d9ddc402b50903717ac Mon Sep 17 00:00:00 2001 From: Eric Cox Date: Tue, 21 Jan 2020 20:31:02 +0000 Subject: SERVER-45454 Desugar where to expr + function --- src/mongo/db/repl/oplog_fetcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/repl/oplog_fetcher.cpp') diff --git a/src/mongo/db/repl/oplog_fetcher.cpp b/src/mongo/db/repl/oplog_fetcher.cpp index 5cd9e5c967c..afff88413c3 100644 --- a/src/mongo/db/repl/oplog_fetcher.cpp +++ b/src/mongo/db/repl/oplog_fetcher.cpp @@ -472,7 +472,7 @@ StatusWith OplogFetcher::_onSuccessfulBatch(const Fetcher::QueryRespons [&](const BSONObj& data) { auto opCtx = cc().makeOperationContext(); boost::intrusive_ptr expCtx( - new ExpressionContext(opCtx.get(), nullptr)); + new ExpressionContext(opCtx.get(), nullptr, _getNamespace())); Matcher m(data["document"].Obj(), expCtx); return !queryResponse.documents.empty() && m.matches(queryResponse.documents.front()["o"].Obj()); @@ -1079,7 +1079,7 @@ Status NewOplogFetcher::_onSuccessfulBatch(const Documents& documents) { [&](const BSONObj& data) { auto opCtx = cc().makeOperationContext(); boost::intrusive_ptr expCtx( - new ExpressionContext(opCtx.get(), nullptr)); + new ExpressionContext(opCtx.get(), nullptr, _nss)); Matcher m(data["document"].Obj(), expCtx); return !documents.empty() && m.matches(documents.front()["o"].Obj()); }); -- cgit v1.2.1