diff options
Diffstat (limited to 'src/mongo/db/query/internal_plans.h')
-rw-r--r-- | src/mongo/db/query/internal_plans.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mongo/db/query/internal_plans.h b/src/mongo/db/query/internal_plans.h index 3846dca76bc..c7507243369 100644 --- a/src/mongo/db/query/internal_plans.h +++ b/src/mongo/db/query/internal_plans.h @@ -39,6 +39,7 @@ namespace mongo { class BSONObj; class Collection; +class CollectionPtr; class IndexDescriptor; class OperationContext; class PlanStage; @@ -72,7 +73,7 @@ public: static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> collectionScan( OperationContext* opCtx, StringData ns, - const Collection* collection, + const CollectionPtr& collection, PlanYieldPolicy::YieldPolicy yieldPolicy, const Direction direction = FORWARD, boost::optional<RecordId> resumeAfterRecordId = boost::none); @@ -82,7 +83,7 @@ public: */ static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> deleteWithCollectionScan( OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, std::unique_ptr<DeleteStageParams> params, PlanYieldPolicy::YieldPolicy yieldPolicy, Direction direction = FORWARD); @@ -92,7 +93,7 @@ public: */ static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> indexScan( OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, const IndexDescriptor* descriptor, const BSONObj& startKey, const BSONObj& endKey, @@ -106,7 +107,7 @@ public: */ static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> deleteWithIndexScan( OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, std::unique_ptr<DeleteStageParams> params, const IndexDescriptor* descriptor, const BSONObj& startKey, @@ -120,7 +121,7 @@ public: */ static std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> updateWithIdHack( OperationContext* opCtx, - const Collection* collection, + const CollectionPtr& collection, const UpdateStageParams& params, const IndexDescriptor* descriptor, const BSONObj& key, @@ -135,7 +136,7 @@ private: static std::unique_ptr<PlanStage> _collectionScan( const boost::intrusive_ptr<ExpressionContext>& expCtx, WorkingSet* ws, - const Collection* collection, + const CollectionPtr& collection, Direction direction, boost::optional<RecordId> resumeAfterRecordId = boost::none); @@ -147,7 +148,7 @@ private: static std::unique_ptr<PlanStage> _indexScan( const boost::intrusive_ptr<ExpressionContext>& expCtx, WorkingSet* ws, - const Collection* collection, + const CollectionPtr& collection, const IndexDescriptor* descriptor, const BSONObj& startKey, const BSONObj& endKey, |