summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/write_commands/write_commands.cpp
diff options
context:
space:
mode:
authorAnton Korshunov <anton.korshunov@mongodb.com>2019-02-27 16:22:31 +0000
committerAnton Korshunov <anton.korshunov@mongodb.com>2019-04-03 12:19:22 +0100
commitd47bbc343af0b5bbde7b810f63e6b3404ea9e4d6 (patch)
treee2778eef1df27012e2540d3333ec95184d359fff /src/mongo/db/commands/write_commands/write_commands.cpp
parent6c2bd4b1be257ba7b9335e40c2af18ff25b7fcdd (diff)
downloadmongo-d47bbc343af0b5bbde7b810f63e6b3404ea9e4d6.tar.gz
SERVER-24860 Optimize away entire pipeline if it can be answered using a query
Diffstat (limited to 'src/mongo/db/commands/write_commands/write_commands.cpp')
-rw-r--r--src/mongo/db/commands/write_commands/write_commands.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp
index 75879251925..f480dda2886 100644
--- a/src/mongo/db/commands/write_commands/write_commands.cpp
+++ b/src/mongo/db/commands/write_commands/write_commands.cpp
@@ -379,7 +379,8 @@ private:
auto exec = uassertStatusOK(getExecutorUpdate(
opCtx, &CurOp::get(opCtx)->debug(), collection.getCollection(), &parsedUpdate));
auto bodyBuilder = result->getBodyBuilder();
- Explain::explainStages(exec.get(), collection.getCollection(), verbosity, &bodyBuilder);
+ Explain::explainStages(
+ exec.get(), collection.getCollection(), verbosity, BSONObj(), &bodyBuilder);
}
write_ops::Update _batch;
@@ -452,7 +453,8 @@ private:
auto exec = uassertStatusOK(getExecutorDelete(
opCtx, &CurOp::get(opCtx)->debug(), collection.getCollection(), &parsedDelete));
auto bodyBuilder = result->getBodyBuilder();
- Explain::explainStages(exec.get(), collection.getCollection(), verbosity, &bodyBuilder);
+ Explain::explainStages(
+ exec.get(), collection.getCollection(), verbosity, BSONObj(), &bodyBuilder);
}
write_ops::Delete _batch;