summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/write_commands/write_commands.cpp
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2020-05-08 14:05:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-19 18:57:41 +0000
commit64906095f4a590a34e1f22042aea2836721f7bbe (patch)
treebe6b8b712ad3dd33adbc95c1dcf5ffd58f33cc8e /src/mongo/db/commands/write_commands/write_commands.cpp
parent25ee2b61ed8467f7c07b26bf52953d25caed95fd (diff)
downloadmongo-64906095f4a590a34e1f22042aea2836721f7bbe.tar.gz
SERVER-48052 Make updates create ExpressionContext with 'explain' field correctly initialized
Diffstat (limited to 'src/mongo/db/commands/write_commands/write_commands.cpp')
-rw-r--r--src/mongo/db/commands/write_commands/write_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp
index 9228fa50fb5..6d1ea157c21 100644
--- a/src/mongo/db/commands/write_commands/write_commands.cpp
+++ b/src/mongo/db/commands/write_commands/write_commands.cpp
@@ -419,7 +419,7 @@ private:
_batch.getRuntimeConstants().value_or(Variables::generateRuntimeConstants(opCtx)));
updateRequest.setLetParameters(_batch.getLet());
updateRequest.setYieldPolicy(PlanExecutor::YIELD_AUTO);
- updateRequest.setExplain();
+ updateRequest.setExplain(verbosity);
const ExtensionsCallbackReal extensionsCallback(opCtx,
&updateRequest.getNamespaceString());