diff options
author | David Storch <david.storch@10gen.com> | 2018-10-31 18:48:41 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2018-11-07 15:07:17 -0500 |
commit | e5ae959b1333ea9b65f7187a188d11e8b5771c31 (patch) | |
tree | 74cb0e34ef135bd0882826d133858e08c99c76a1 /src/mongo/db/query | |
parent | f0b39d9184094661fcaa1049531b80b5ad6b3995 (diff) | |
download | mongo-e5ae959b1333ea9b65f7187a188d11e8b5771c31.tar.gz |
SERVER-37446 Make more PlanStages inherit from RequiresCollectionStage.
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r-- | src/mongo/db/query/stage_builder.cpp | 6 | ||||
-rw-r--r-- | src/mongo/db/query/stage_builder.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/query/stage_builder.cpp b/src/mongo/db/query/stage_builder.cpp index 0b4409f384b..370bcf0205b 100644 --- a/src/mongo/db/query/stage_builder.cpp +++ b/src/mongo/db/query/stage_builder.cpp @@ -68,7 +68,7 @@ using std::unique_ptr; using stdx::make_unique; PlanStage* buildStages(OperationContext* opCtx, - Collection* collection, + const Collection* collection, const CanonicalQuery& cq, const QuerySolution& qsol, const QuerySolutionNode* root, @@ -277,7 +277,7 @@ PlanStage* buildStages(OperationContext* opCtx, opCtx, node->index.identifier.catalogName); invariant(desc); const FTSAccessMethod* fam = - static_cast<FTSAccessMethod*>(collection->getIndexCatalog()->getIndex(desc)); + static_cast<const FTSAccessMethod*>(collection->getIndexCatalog()->getIndex(desc)); invariant(fam); TextStageParams params(fam->getSpec()); @@ -389,7 +389,7 @@ PlanStage* buildStages(OperationContext* opCtx, // static (this one is used for Cached and MultiPlanStage) bool StageBuilder::build(OperationContext* opCtx, - Collection* collection, + const Collection* collection, const CanonicalQuery& cq, const QuerySolution& solution, WorkingSet* wsIn, diff --git a/src/mongo/db/query/stage_builder.h b/src/mongo/db/query/stage_builder.h index 843b98c4704..dd7e670d5e6 100644 --- a/src/mongo/db/query/stage_builder.h +++ b/src/mongo/db/query/stage_builder.h @@ -54,7 +54,7 @@ public: * Returns false otherwise. *rootOut and *wsOut are invalid. */ static bool build(OperationContext* opCtx, - Collection* collection, + const Collection* collection, const CanonicalQuery& cq, const QuerySolution& solution, WorkingSet* wsIn, |