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/exec/subplan.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/exec/subplan.h')
-rw-r--r-- | src/mongo/db/exec/subplan.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/exec/subplan.h b/src/mongo/db/exec/subplan.h index 38625a15276..d844e27472c 100644 --- a/src/mongo/db/exec/subplan.h +++ b/src/mongo/db/exec/subplan.h @@ -28,7 +28,9 @@ #pragma once +#include <memory> #include <string> +#include <vector> #include "mongo/base/owned_pointer_vector.h" #include "mongo/base/status.h" @@ -156,7 +158,7 @@ private: std::unique_ptr<CachedSolution> cachedSolution; // Query solutions resulting from planning the $or branch. - OwnedPointerVector<QuerySolution> solutions; + std::vector<std::unique_ptr<QuerySolution>> solutions; }; /** @@ -203,7 +205,7 @@ private: std::unique_ptr<QuerySolution> _compositeSolution; // Holds a list of the results from planning each branch. - OwnedPointerVector<BranchPlanningResult> _branchResults; + std::vector<std::unique_ptr<BranchPlanningResult>> _branchResults; // We need this to extract cache-friendly index data from the index assignments. std::map<StringData, size_t> _indexMap; |