summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/text.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-11-08 16:23:40 -0500
committerDavid Storch <david.storch@10gen.com>2018-11-27 13:33:54 -0500
commita0f64a185b60422fe15b67a406c7b8e04c191937 (patch)
tree4284490a2d3be19a40c447e2299dac4e0101c4a7 /src/mongo/db/exec/text.cpp
parent99ec5dabaf1286a5440da0bb561e32d3aa79466a (diff)
downloadmongo-a0f64a185b60422fe15b67a406c7b8e04c191937.tar.gz
SERVER-37447 Introduce RequiresIndexStage and use for IXSCAN.
Diffstat (limited to 'src/mongo/db/exec/text.cpp')
-rw-r--r--src/mongo/db/exec/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/text.cpp b/src/mongo/db/exec/text.cpp
index 4cd25adad23..015b517b005 100644
--- a/src/mongo/db/exec/text.cpp
+++ b/src/mongo/db/exec/text.cpp
@@ -103,7 +103,7 @@ unique_ptr<PlanStage> TextStage::buildTextTree(OperationContext* opCtx,
// Get all the index scans for each term in our query.
std::vector<std::unique_ptr<PlanStage>> indexScanList;
for (const auto& term : _params.query.getTermsForBounds()) {
- IndexScanParams ixparams(opCtx, *_params.index);
+ IndexScanParams ixparams(opCtx, _params.index);
ixparams.bounds.startKey = FTSIndexFormat::getIndexKey(
MAX_WEIGHT, term, _params.indexPrefix, _params.spec.getTextIndexVersion());
ixparams.bounds.endKey = FTSIndexFormat::getIndexKey(