diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-03-10 18:34:08 -0500 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-03-10 18:34:08 -0500 |
commit | 04b8ed12d08affcb06e88c8a2b4398628ae0aa62 (patch) | |
tree | 3e1a43aa762a2136422b4fa66f70ee89222d29a1 /src/mongo/db/query/plan_ranker.h | |
parent | 56810e6acb3a0425284189d852eaefb391e5f800 (diff) | |
download | mongo-04b8ed12d08affcb06e88c8a2b4398628ae0aa62.tar.gz |
SERVER-27975 Remove many uses of `OwnedPointerVector`
This removes many of the remaining uses of the deprecated
`OwnedPointerVector` type.
Diffstat (limited to 'src/mongo/db/query/plan_ranker.h')
-rw-r--r-- | src/mongo/db/query/plan_ranker.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_ranker.h b/src/mongo/db/query/plan_ranker.h index d01539b847e..30413a37e78 100644 --- a/src/mongo/db/query/plan_ranker.h +++ b/src/mongo/db/query/plan_ranker.h @@ -95,9 +95,9 @@ struct PlanRankingDecision { PlanRankingDecision* clone() const { PlanRankingDecision* decision = new PlanRankingDecision(); for (size_t i = 0; i < stats.size(); ++i) { - PlanStageStats* s = stats.vector()[i]; + PlanStageStats* s = stats[i].get(); invariant(s); - decision->stats.mutableVector().push_back(s->clone()); + decision->stats.push_back(std::unique_ptr<PlanStageStats>{s->clone()}); } decision->scores = scores; decision->candidateOrder = candidateOrder; @@ -106,7 +106,7 @@ struct PlanRankingDecision { // Stats of all plans sorted in descending order by score. // Owned by us. - OwnedPointerVector<PlanStageStats> stats; + std::vector<std::unique_ptr<PlanStageStats>> stats; // The "goodness" score corresponding to 'stats'. // Sorted in descending order. |