diff options
author | David Storch <david.storch@mongodb.com> | 2019-10-22 21:32:40 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-22 21:32:40 +0000 |
commit | 8d048a3bb2f0f2f81cf99ce76ff21112bf3963d6 (patch) | |
tree | 8ac057129946e378c53730914e15d366ca0b0c92 /src/mongo/db/pipeline/document_source_cursor.cpp | |
parent | 0a5b8a92ed440f9dbc35d8e3d22cde43fab164f6 (diff) | |
download | mongo-8d048a3bb2f0f2f81cf99ce76ff21112bf3963d6.tar.gz |
SERVER-7568 Push $sort into PlanStage layer even for blocking SORT plans.
This change results in the multi-planning mechanism
evaluating both non-blocking and blocking plans for the
$sort when possible. The system should no longer select a
non-blocking plan when a plan with a SORT stage is superior.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_cursor.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_cursor.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp index 803f78422b9..6ad22cce49d 100644 --- a/src/mongo/db/pipeline/document_source_cursor.cpp +++ b/src/mongo/db/pipeline/document_source_cursor.cpp @@ -183,10 +183,6 @@ Value DocumentSourceCursor::serialize(boost::optional<ExplainOptions::Verbosity> verbosity == pExpCtx->explain); MutableDocument out; - out["query"] = Value(_query); - - if (!_sort.isEmpty()) - out["sort"] = Value(_sort); BSONObjBuilder explainStatsBuilder; |