diff options
Diffstat (limited to 'src/mongo/s/catalog_cache_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/catalog_cache_test_fixture.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/s/catalog_cache_test_fixture.cpp b/src/mongo/s/catalog_cache_test_fixture.cpp index ba9bb4a4ddb..71e02e67fac 100644 --- a/src/mongo/s/catalog_cache_test_fixture.cpp +++ b/src/mongo/s/catalog_cache_test_fixture.cpp @@ -108,7 +108,8 @@ ChunkManager CatalogCacheTestFixture::makeChunkManager( const ShardKeyPattern& shardKeyPattern, std::unique_ptr<CollatorInterface> defaultCollator, bool unique, - const std::vector<BSONObj>& splitPoints) { + const std::vector<BSONObj>& splitPoints, + boost::optional<ReshardingFields> reshardingFields) { ChunkVersion version(1, 0, OID::gen()); const BSONObj databaseBSON = [&]() { @@ -127,6 +128,10 @@ ChunkManager CatalogCacheTestFixture::makeChunkManager( coll.setDefaultCollation(defaultCollator->getSpec().toBSON()); } + if (reshardingFields) { + coll.setReshardingFields(std::move(reshardingFields)); + } + return coll.toBSON(); }(); |