summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_runtime_test.cpp
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2020-12-03 11:02:49 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-10 10:14:41 +0000
commit457ad84c771a6cdd78f44593760613f3abf2d24c (patch)
tree1029a0044907c5c5cf2d564fac6dd6682ccdd2a2 /src/mongo/db/s/collection_sharding_runtime_test.cpp
parent4e5de13940486910b57c1feb57e58687f778b855 (diff)
downloadmongo-457ad84c771a6cdd78f44593760613f3abf2d24c.tar.gz
SERVER-53093 Add timestamp to ChunkVersion
PART 2: Fixing our tests
Diffstat (limited to 'src/mongo/db/s/collection_sharding_runtime_test.cpp')
-rw-r--r--src/mongo/db/s/collection_sharding_runtime_test.cpp33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/mongo/db/s/collection_sharding_runtime_test.cpp b/src/mongo/db/s/collection_sharding_runtime_test.cpp
index 9c4ce69c65d..1779b75b60b 100644
--- a/src/mongo/db/s/collection_sharding_runtime_test.cpp
+++ b/src/mongo/db/s/collection_sharding_runtime_test.cpp
@@ -51,21 +51,24 @@ protected:
UUID uuid = UUID::gen()) {
const OID epoch = OID::gen();
auto range = ChunkRange(BSON(kShardKey << MINKEY), BSON(kShardKey << MAXKEY));
- auto chunk =
- ChunkType(kTestNss, std::move(range), ChunkVersion(1, 0, epoch), ShardId("other"));
- ChunkManager cm(
- ShardId("0"),
- DatabaseVersion(UUID::gen()),
- makeStandaloneRoutingTableHistory(RoutingTableHistory::makeNew(kTestNss,
- uuid,
- kShardKeyPattern,
- nullptr,
- false,
- epoch,
- boost::none,
- true,
- {std::move(chunk)})),
- boost::none);
+ auto chunk = ChunkType(kTestNss,
+ std::move(range),
+ ChunkVersion(1, 0, epoch, boost::none /* timestamp */),
+ ShardId("other"));
+ ChunkManager cm(ShardId("0"),
+ DatabaseVersion(UUID::gen()),
+ makeStandaloneRoutingTableHistory(
+ RoutingTableHistory::makeNew(kTestNss,
+ uuid,
+ kShardKeyPattern,
+ nullptr,
+ false,
+ epoch,
+ boost::none /* timestamp */,
+ boost::none,
+ true,
+ {std::move(chunk)})),
+ boost::none);
if (!OperationShardingState::isOperationVersioned(opCtx)) {
const auto version = cm.getVersion(ShardId("0"));