summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/sharding_catalog_client_impl.h
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2017-11-29 03:54:49 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2017-12-18 05:47:06 +0000
commit8a9090c4c59a840639f37c509fd0f2c6af252117 (patch)
treebc129d2c254438a6a971eb246fa4b6246310096d /src/mongo/s/catalog/sharding_catalog_client_impl.h
parent8467708af7fa83f8827362b80f56dab4aad30a41 (diff)
downloadmongo-8a9090c4c59a840639f37c509fd0f2c6af252117.tar.gz
SERVER-18138 catalog manager listing methods now return vectors
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_client_impl.h')
-rw-r--r--src/mongo/s/catalog/sharding_catalog_client_impl.h34
1 files changed, 15 insertions, 19 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_client_impl.h b/src/mongo/s/catalog/sharding_catalog_client_impl.h
index c11ec37f751..7934cce207f 100644
--- a/src/mongo/s/catalog/sharding_catalog_client_impl.h
+++ b/src/mongo/s/catalog/sharding_catalog_client_impl.h
@@ -94,28 +94,24 @@ public:
StatusWith<repl::OpTimeWith<CollectionType>> getCollection(OperationContext* opCtx,
const std::string& collNs) override;
- Status getCollections(OperationContext* opCtx,
- const std::string* dbName,
- std::vector<CollectionType>* collections,
- repl::OpTime* optime) override;
+ StatusWith<std::vector<CollectionType>> getCollections(OperationContext* opCtx,
+ const std::string* dbName,
+ repl::OpTime* optime) override;
Status dropCollection(OperationContext* opCtx, const NamespaceString& ns) override;
- Status getDatabasesForShard(OperationContext* opCtx,
- const ShardId& shardName,
- std::vector<std::string>* dbs) override;
-
- Status getChunks(OperationContext* opCtx,
- const BSONObj& query,
- const BSONObj& sort,
- boost::optional<int> limit,
- std::vector<ChunkType>* chunks,
- repl::OpTime* opTime,
- repl::ReadConcernLevel readConcern) override;
-
- Status getTagsForCollection(OperationContext* opCtx,
- const std::string& collectionNs,
- std::vector<TagsType>* tags) override;
+ StatusWith<std::vector<std::string>> getDatabasesForShard(OperationContext* opCtx,
+ const ShardId& shardName) override;
+
+ StatusWith<std::vector<ChunkType>> getChunks(OperationContext* opCtx,
+ const BSONObj& query,
+ const BSONObj& sort,
+ boost::optional<int> limit,
+ repl::OpTime* opTime,
+ repl::ReadConcernLevel readConcern) override;
+
+ StatusWith<std::vector<TagsType>> getTagsForCollection(
+ OperationContext* opCtx, const std::string& collectionNs) override;
StatusWith<repl::OpTimeWith<std::vector<ShardType>>> getAllShards(
OperationContext* opCtx, repl::ReadConcernLevel readConcern) override;