summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/cached_plan.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/cached_plan.h')
-rw-r--r--src/mongo/db/exec/cached_plan.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/exec/cached_plan.h b/src/mongo/db/exec/cached_plan.h
index 37962fbd456..9c17239deb7 100644
--- a/src/mongo/db/exec/cached_plan.h
+++ b/src/mongo/db/exec/cached_plan.h
@@ -60,6 +60,10 @@ namespace mongo {
virtual void recoverFromYield();
virtual void invalidate(const DiskLoc& dl, InvalidationType type);
+ virtual std::vector<PlanStage*> getChildren() const;
+
+ virtual StageType stageType() const { return STAGE_CACHED_PLAN; }
+
virtual PlanStageStats* getStats();
static const char* kStageType;
@@ -72,7 +76,7 @@ namespace mongo {
const Collection* _collection;
// not owned
- CanonicalQuery* _canonicalQuery;
+ CanonicalQuery* _canonicalQuery;
// owned by us
boost::scoped_ptr<PlanStage> _mainChildPlan;