diff options
author | David Storch <david.storch@10gen.com> | 2018-01-09 17:57:41 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2018-01-11 18:43:25 -0500 |
commit | e377025071e4c9fff336fc57741e5cc8511607af (patch) | |
tree | d34bb3208881fecce2d41b1905fe34d849f1d92c /src/mongo/db/exec/multi_plan.h | |
parent | c16959f19705772d01e1053899048869aafe4537 (diff) | |
download | mongo-e377025071e4c9fff336fc57741e5cc8511607af.tar.gz |
SERVER-32603 Modernize QueryPlanner methods to use unique_ptr.
Diffstat (limited to 'src/mongo/db/exec/multi_plan.h')
-rw-r--r-- | src/mongo/db/exec/multi_plan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/multi_plan.h b/src/mongo/db/exec/multi_plan.h index 7ec6bad81d7..5d6369e3c0d 100644 --- a/src/mongo/db/exec/multi_plan.h +++ b/src/mongo/db/exec/multi_plan.h @@ -96,9 +96,9 @@ public: const SpecificStats* getSpecificStats() const final; /** - * Takes ownership of QuerySolution and PlanStage. not of WorkingSet + * Takes ownership of PlanStage. Does not take ownership of WorkingSet. */ - void addPlan(QuerySolution* solution, PlanStage* root, WorkingSet* sharedWs); + void addPlan(std::unique_ptr<QuerySolution> solution, PlanStage* root, WorkingSet* sharedWs); /** * Runs all plans added by addPlan, ranks them, and picks a best. |