summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/multi_plan.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2018-10-31 18:48:41 -0400
committerDavid Storch <david.storch@10gen.com>2018-11-07 15:07:17 -0500
commite5ae959b1333ea9b65f7187a188d11e8b5771c31 (patch)
tree74cb0e34ef135bd0882826d133858e08c99c76a1 /src/mongo/db/exec/multi_plan.h
parentf0b39d9184094661fcaa1049531b80b5ad6b3995 (diff)
downloadmongo-e5ae959b1333ea9b65f7187a188d11e8b5771c31.tar.gz
SERVER-37446 Make more PlanStages inherit from RequiresCollectionStage.
Diffstat (limited to 'src/mongo/db/exec/multi_plan.h')
-rw-r--r--src/mongo/db/exec/multi_plan.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mongo/db/exec/multi_plan.h b/src/mongo/db/exec/multi_plan.h
index 36e8a2187fd..c24390c24c7 100644
--- a/src/mongo/db/exec/multi_plan.h
+++ b/src/mongo/db/exec/multi_plan.h
@@ -32,7 +32,7 @@
#include "mongo/db/catalog/collection.h"
-#include "mongo/db/exec/plan_stage.h"
+#include "mongo/db/exec/requires_collection_stage.h"
#include "mongo/db/exec/working_set.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/query/canonical_query.h"
@@ -51,7 +51,7 @@ namespace mongo {
*
* Owns the query solutions and PlanStage roots for all candidate plans.
*/
-class MultiPlanStage final : public PlanStage {
+class MultiPlanStage final : public RequiresCollectionStage {
public:
/**
* Callers use this to specify how the MultiPlanStage should interact with the plan cache.
@@ -153,6 +153,11 @@ public:
static const char* kStageType;
+protected:
+ void saveState(RequiresCollTag) final {}
+
+ void restoreState(RequiresCollTag) final {}
+
private:
//
// Have all our candidate plans do something.
@@ -178,9 +183,6 @@ private:
static const int kNoSuchPlan = -1;
- // Not owned here. Must be non-null.
- const Collection* _collection;
-
// Describes the cases in which we should write an entry for the winning plan to the plan cache.
const CachingMode _cachingMode;