summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache_test_fixture.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-09-21 20:49:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-30 23:23:49 +0000
commit3d309638ce9f55e93bd500945dea2b63e1e591d6 (patch)
treeb7b74f1193ab7a81a11acc6888e300ba97f194bd /src/mongo/s/catalog_cache_test_fixture.h
parentd8d30d268bfccc2bfd646d45bc2e339742c3a0ea (diff)
downloadmongo-3d309638ce9f55e93bd500945dea2b63e1e591d6.tar.gz
SERVER-50023 Implement temporary resharding collection creation logic on shard version update on recipient shards
Diffstat (limited to 'src/mongo/s/catalog_cache_test_fixture.h')
-rw-r--r--src/mongo/s/catalog_cache_test_fixture.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/s/catalog_cache_test_fixture.h b/src/mongo/s/catalog_cache_test_fixture.h
index 3d58f6a8557..8886c1e74bb 100644
--- a/src/mongo/s/catalog_cache_test_fixture.h
+++ b/src/mongo/s/catalog_cache_test_fixture.h
@@ -116,8 +116,11 @@ protected:
/**
* The common implementation for any shard key.
*/
- ChunkManager loadRoutingTableWithTwoChunksAndTwoShardsImpl(NamespaceString nss,
- const BSONObj& shardKey);
+ ChunkManager loadRoutingTableWithTwoChunksAndTwoShardsImpl(
+ NamespaceString nss,
+ const BSONObj& shardKey,
+ boost::optional<std::string> primaryShardId = boost::none,
+ boost::optional<UUID> uuid = boost::none);
/**
* Mocks network responses for loading a sharded database and collection from the config server.
@@ -125,7 +128,8 @@ protected:
void expectGetDatabase(NamespaceString nss, std::string primaryShard = "0");
void expectGetCollection(NamespaceString nss,
OID epoch,
- const ShardKeyPattern& shardKeyPattern);
+ const ShardKeyPattern& shardKeyPattern,
+ boost::optional<UUID> uuid = boost::none);
const HostAndPort kConfigHostAndPort{"DummyConfig", 1234};
};