summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/internal_plans.cpp
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2018-07-25 13:31:11 +0100
committerBernard Gorman <bernard.gorman@gmail.com>2018-08-10 14:18:54 +0100
commit6f9bb8538a9d081d56437c032353f7fdb7e4e562 (patch)
treeca3a18e1401bf31e510b100c44add5b424d46a91 /src/mongo/db/query/internal_plans.cpp
parentd054cd1149acb76830fff466ef3bb234741b5a46 (diff)
downloadmongo-6f9bb8538a9d081d56437c032353f7fdb7e4e562.tar.gz
SERVER-35500 Implement special bounds generation for allPaths indexes
Diffstat (limited to 'src/mongo/db/query/internal_plans.cpp')
-rw-r--r--src/mongo/db/query/internal_plans.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/internal_plans.cpp b/src/mongo/db/query/internal_plans.cpp
index 0a3aeddfc56..03ee028def0 100644
--- a/src/mongo/db/query/internal_plans.cpp
+++ b/src/mongo/db/query/internal_plans.cpp
@@ -203,15 +203,15 @@ std::unique_ptr<PlanStage> InternalPlanner::_indexScan(OperationContext* opCtx,
invariant(collection);
invariant(descriptor);
- IndexScanParams params;
- params.descriptor = descriptor;
+ IndexScanParams params(opCtx, *descriptor);
params.direction = direction;
params.bounds.isSimpleRange = true;
params.bounds.startKey = startKey;
params.bounds.endKey = endKey;
params.bounds.boundInclusion = boundInclusion;
- std::unique_ptr<PlanStage> root = stdx::make_unique<IndexScan>(opCtx, params, ws, nullptr);
+ std::unique_ptr<PlanStage> root =
+ stdx::make_unique<IndexScan>(opCtx, std::move(params), ws, nullptr);
if (InternalPlanner::IXSCAN_FETCH & options) {
root = stdx::make_unique<FetchStage>(opCtx, ws, root.release(), nullptr, collection);