summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2022-04-27 23:07:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-28 00:06:44 +0000
commitdb67c16a6445e66ff85a5f4d800b6b9393e82cdd (patch)
treebba40dab6baa4c44d312d841753e973000334405 /src/mongo/db/ops
parentdf26f908c50bd2efaa48c2d9dade971f165674dd (diff)
downloadmongo-db67c16a6445e66ff85a5f4d800b6b9393e82cdd.tar.gz
SERVER-66009 Avoid use of mongo process interface if search is in an update pipeline
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/parsed_update.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/ops/parsed_update.cpp b/src/mongo/db/ops/parsed_update.cpp
index ac281c89101..b9557e4b2fe 100644
--- a/src/mongo/db/ops/parsed_update.cpp
+++ b/src/mongo/db/ops/parsed_update.cpp
@@ -193,11 +193,12 @@ void ParsedUpdate::parseUpdate() {
source == OperationSource::kTimeseriesUpdate) {
_driver.setSkipDotsDollarsCheck(true);
}
-
+ _expCtx->isParsingPipelineUpdate = true;
_driver.parse(_request->getUpdateModification(),
_arrayFilters,
_request->getUpdateConstants(),
_request->isMulti());
+ _expCtx->isParsingPipelineUpdate = false;
}
PlanYieldPolicy::YieldPolicy ParsedUpdate::yieldPolicy() const {