summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp')
-rw-r--r--src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp b/src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp
index 82426d039a1..3d87d74f94b 100644
--- a/src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp
+++ b/src/mongo/db/s/migration_chunk_cloner_source_legacy_test.cpp
@@ -165,11 +165,12 @@ protected:
CollectionShardingRuntime::get(operationContext(), kNss)
->setFilteringMetadata(
operationContext(),
- CollectionMetadata(ChunkManager(ShardId("dummyShardId"),
- DatabaseVersion(UUID::gen(), 1),
- rt,
- boost::none),
- ShardId("dummyShardId")));
+ CollectionMetadata(
+ ChunkManager(ShardId("dummyShardId"),
+ DatabaseVersion(UUID::gen(), 1),
+ makeStandaloneRoutingTableHistory(std::move(rt)),
+ boost::none),
+ ShardId("dummyShardId")));
}();
_client->createIndex(kNss.ns(), kShardKeyPattern);