summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/text.cpp
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2015-12-01 16:54:41 -0500
committerJason Rassi <rassi@10gen.com>2015-12-01 16:54:41 -0500
commit72d5149270c6b3f78d0563d765075f1cfa926d66 (patch)
treea3976023aca8089133bd65e9f2159d634ff6bea5 /src/mongo/db/exec/text.cpp
parent593eedf0abb5081c911c03ab3d1db5b6afaa4ac5 (diff)
downloadmongo-72d5149270c6b3f78d0563d765075f1cfa926d66.tar.gz
SERVER-21690 TextOrStage should fetch doc when RecordId first observed
Diffstat (limited to 'src/mongo/db/exec/text.cpp')
-rw-r--r--src/mongo/db/exec/text.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/exec/text.cpp b/src/mongo/db/exec/text.cpp
index 5c2f1fa1e67..424b372b017 100644
--- a/src/mongo/db/exec/text.cpp
+++ b/src/mongo/db/exec/text.cpp
@@ -30,7 +30,6 @@
#include <vector>
-#include "mongo/db/exec/fetch.h"
#include "mongo/db/exec/filter.h"
#include "mongo/db/exec/index_scan.h"
#include "mongo/db/exec/text_or.h"
@@ -135,11 +134,8 @@ unique_ptr<PlanStage> TextStage::buildTextTree(OperationContext* txn,
textScorer->addChild(make_unique<IndexScan>(txn, ixparams, ws, nullptr));
}
- auto fetcher = make_unique<FetchStage>(
- txn, ws, textScorer.release(), nullptr, _params.index->getCollection());
-
auto matcher =
- make_unique<TextMatchStage>(txn, std::move(fetcher), _params.query, _params.spec, ws);
+ make_unique<TextMatchStage>(txn, std::move(textScorer), _params.query, _params.spec, ws);
unique_ptr<PlanStage> treeRoot = std::move(matcher);
return treeRoot;