From 04b8ed12d08affcb06e88c8a2b4398628ae0aa62 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 10 Mar 2017 18:34:08 -0500 Subject: SERVER-27975 Remove many uses of `OwnedPointerVector` This removes many of the remaining uses of the deprecated `OwnedPointerVector` type. --- src/mongo/s/ns_targeter.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/mongo/s/ns_targeter.h') diff --git a/src/mongo/s/ns_targeter.h b/src/mongo/s/ns_targeter.h index 95e19a81a53..194514a44f3 100644 --- a/src/mongo/s/ns_targeter.h +++ b/src/mongo/s/ns_targeter.h @@ -28,7 +28,9 @@ #pragma once +#include #include +#include #include "mongo/base/status.h" #include "mongo/bson/bsonobj.h" @@ -94,7 +96,7 @@ public: */ virtual Status targetUpdate(OperationContext* opCtx, const BatchedUpdateDocument& updateDoc, - std::vector* endpoints) const = 0; + std::vector>* endpoints) const = 0; /** * Returns a vector of ShardEndpoints for a potentially multi-shard delete. @@ -103,21 +105,23 @@ public: */ virtual Status targetDelete(OperationContext* opCtx, const BatchedDeleteDocument& deleteDoc, - std::vector* endpoints) const = 0; + std::vector>* endpoints) const = 0; /** * Returns a vector of ShardEndpoints for the entire collection. * * Returns !OK with message if the full collection could not be targeted. */ - virtual Status targetCollection(std::vector* endpoints) const = 0; + virtual Status targetCollection( + std::vector>* endpoints) const = 0; /** * Returns a vector of ShardEndpoints for all shards. * * Returns !OK with message if all shards could not be targeted. */ - virtual Status targetAllShards(std::vector* endpoints) const = 0; + virtual Status targetAllShards( + std::vector>* endpoints) const = 0; /** * Informs the targeter that a targeting failure occurred during one of the last targeting -- cgit v1.2.1