summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/multi_plan.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2019-09-04 15:32:56 +0000
committerevergreen <evergreen@mongodb.com>2019-09-04 15:32:56 +0000
commitb13188206e74dbeb66c4b663d83ed1d1f97c286b (patch)
tree01bcfe63112a9a4981a622a5370493d7d089a7a5 /src/mongo/db/exec/multi_plan.h
parentd9d50312ccdfcfb628d89f34c0dcda05c8f921bc (diff)
downloadmongo-b13188206e74dbeb66c4b663d83ed1d1f97c286b.tar.gz
SERVER-42852 Make PlanStage consistently hold children by unique_ptr.
Diffstat (limited to 'src/mongo/db/exec/multi_plan.h')
-rw-r--r--src/mongo/db/exec/multi_plan.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/exec/multi_plan.h b/src/mongo/db/exec/multi_plan.h
index d11797b5582..f70b2800e63 100644
--- a/src/mongo/db/exec/multi_plan.h
+++ b/src/mongo/db/exec/multi_plan.h
@@ -95,9 +95,11 @@ public:
const SpecificStats* getSpecificStats() const final;
/**
- * Takes ownership of PlanStage. Does not take ownership of WorkingSet.
+ * Adsd a new candidate plan to be considered for selection by the MultiPlanStage trial period.
*/
- void addPlan(std::unique_ptr<QuerySolution> solution, PlanStage* root, WorkingSet* sharedWs);
+ void addPlan(std::unique_ptr<QuerySolution> solution,
+ std::unique_ptr<PlanStage> root,
+ WorkingSet* sharedWs);
/**
* Runs all plans added by addPlan, ranks them, and picks a best.