summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_cursor.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@mongodb.com>2019-10-31 18:01:55 +0000
committerevergreen <evergreen@mongodb.com>2019-10-31 18:01:55 +0000
commit996e6060811aced89dfef78b0d695d208690f3d6 (patch)
treee216de551fe419ea243858d15a236546f546fdb0 /src/mongo/db/pipeline/document_source_cursor.cpp
parentd8b18ea6033234870b09a7051cde98b41482a0ef (diff)
downloadmongo-996e6060811aced89dfef78b0d695d208690f3d6.tar.gz
SERVER-44013 MR Agg: Report plan stats and summary for currentOp/profiler/slow query logging
Diffstat (limited to 'src/mongo/db/pipeline/document_source_cursor.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index 6ad22cce49d..c2f9c9d1a8d 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -161,14 +161,7 @@ void DocumentSourceCursor::_updateOplogTimestamp() {
void DocumentSourceCursor::recordPlanSummaryStats() {
invariant(_exec);
- // Aggregation handles in-memory sort outside of the query sub-system. Given that we need to
- // preserve the existing value of hasSortStage rather than overwrite with the underlying
- // PlanExecutor's value.
- auto hasSortStage = _planSummaryStats.hasSortStage;
-
Explain::getSummaryStats(*_exec, &_planSummaryStats);
-
- _planSummaryStats.hasSortStage = hasSortStage;
}
Value DocumentSourceCursor::serialize(boost::optional<ExplainOptions::Verbosity> verbosity) const {