diff options
Diffstat (limited to 'src/mongo/db/s/balancer/type_migration_test.cpp')
-rw-r--r-- | src/mongo/db/s/balancer/type_migration_test.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/s/balancer/type_migration_test.cpp b/src/mongo/db/s/balancer/type_migration_test.cpp index 13e10d94a9f..ec1d52a8a38 100644 --- a/src/mongo/db/s/balancer/type_migration_test.cpp +++ b/src/mongo/db/s/balancer/type_migration_test.cpp @@ -48,7 +48,9 @@ const ShardId kToShard("shard0001"); const bool kWaitForDelete{true}; TEST(MigrationTypeTest, ConvertFromMigrationInfo) { - const ChunkVersion version(1, 2, OID::gen(), boost::none /* timestamp */); + const auto collEpoch = OID::gen(); + const auto collTimestamp = boost::none; + const ChunkVersion version(1, 2, collEpoch, collTimestamp); BSONObjBuilder chunkBuilder; chunkBuilder.append(ChunkType::name(), OID::gen()); @@ -58,7 +60,8 @@ TEST(MigrationTypeTest, ConvertFromMigrationInfo) { version.appendLegacyWithField(&chunkBuilder, ChunkType::lastmod()); chunkBuilder.append(ChunkType::shard(), kFromShard.toString()); - ChunkType chunkType = assertGet(ChunkType::fromConfigBSON(chunkBuilder.obj())); + ChunkType chunkType = + assertGet(ChunkType::fromConfigBSON(chunkBuilder.obj(), collEpoch, collTimestamp)); ASSERT_OK(chunkType.validate()); MigrateInfo migrateInfo(kToShard, |