diff options
author | Jason Rassi <rassi@10gen.com> | 2015-12-01 16:54:41 -0500 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-12-01 16:54:41 -0500 |
commit | 72d5149270c6b3f78d0563d765075f1cfa926d66 (patch) | |
tree | a3976023aca8089133bd65e9f2159d634ff6bea5 /src/mongo/db/exec/text.cpp | |
parent | 593eedf0abb5081c911c03ab3d1db5b6afaa4ac5 (diff) | |
download | mongo-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.cpp | 6 |
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; |