summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog/sharding_catalog_client_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_client_mock.cpp')
-rw-r--r--src/mongo/s/catalog/sharding_catalog_client_mock.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_client_mock.cpp b/src/mongo/s/catalog/sharding_catalog_client_mock.cpp
index 7f19157811b..3ad6ab3f54a 100644
--- a/src/mongo/s/catalog/sharding_catalog_client_mock.cpp
+++ b/src/mongo/s/catalog/sharding_catalog_client_mock.cpp
@@ -69,10 +69,7 @@ CollectionType ShardingCatalogClientMock::getCollection(OperationContext* opCtx,
}
std::vector<CollectionType> ShardingCatalogClientMock::getCollections(
- OperationContext* opCtx,
- StringData dbName,
- repl::ReadConcernLevel readConcernLevel,
- const BSONObj& sort) {
+ OperationContext* opCtx, StringData dbName, repl::ReadConcernLevel readConcernLevel) {
uasserted(ErrorCodes::InternalError, "Method not implemented");
}
@@ -113,7 +110,7 @@ StatusWith<std::vector<TagsType>> ShardingCatalogClientMock::getTagsForCollectio
}
StatusWith<repl::OpTimeWith<std::vector<ShardType>>> ShardingCatalogClientMock::getAllShards(
- OperationContext* opCtx, repl::ReadConcernLevel readConcern, bool excludeDraining) {
+ OperationContext* opCtx, repl::ReadConcernLevel readConcern) {
return {ErrorCodes::InternalError, "Method not implemented"};
}
@@ -152,6 +149,12 @@ Status ShardingCatalogClientMock::insertConfigDocument(OperationContext* opCtx,
return {ErrorCodes::InternalError, "Method not implemented"};
}
+void ShardingCatalogClientMock::insertConfigDocumentsAsRetryableWrite(
+ OperationContext* opCtx,
+ const NamespaceString& nss,
+ std::vector<BSONObj> docs,
+ const WriteConcernOptions& writeConcern) {}
+
StatusWith<bool> ShardingCatalogClientMock::updateConfigDocument(
OperationContext* opCtx,
const NamespaceString& nss,
@@ -188,7 +191,7 @@ Status ShardingCatalogClientMock::createDatabase(OperationContext* opCtx,
return {ErrorCodes::InternalError, "Method not implemented"};
}
-StatusWith<std::vector<KeysCollectionDocument>> ShardingCatalogClientMock::getNewInternalKeys(
+StatusWith<std::vector<KeysCollectionDocument>> ShardingCatalogClientMock::getNewKeys(
OperationContext* opCtx,
StringData purpose,
const LogicalTime& newerThanThis,
@@ -196,13 +199,6 @@ StatusWith<std::vector<KeysCollectionDocument>> ShardingCatalogClientMock::getNe
return {ErrorCodes::InternalError, "Method not implemented"};
}
-StatusWith<std::vector<ExternalKeysCollectionDocument>>
-ShardingCatalogClientMock::getAllExternalKeys(OperationContext* opCtx,
- StringData purpose,
- repl::ReadConcernLevel readConcernLevel) {
- return {ErrorCodes::InternalError, "Method not implemented"};
-}
-
StatusWith<repl::OpTimeWith<std::vector<BSONObj>>>
ShardingCatalogClientMock::_exhaustiveFindOnConfig(OperationContext* opCtx,
const ReadPreferenceSetting& readPref,