diff options
author | Allison Easton <allison.easton@mongodb.com> | 2021-10-08 09:58:23 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-08 10:22:09 +0000 |
commit | 8679a54bd8780fdbe1cb6a052f70a494cd4205e5 (patch) | |
tree | 658ccb979bfe0726b8985ed1879932c54265ce00 /src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp | |
parent | ad809cbc37db74ac0c3e1f95456ccdd38e1a7486 (diff) | |
download | mongo-8679a54bd8780fdbe1cb6a052f70a494cd4205e5.tar.gz |
SERVER-60378 Rewrite some sharding tests to avoid using chunk versions with Timestamp(0, 0)
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp b/src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp index 2e741189743..eb95ef2a215 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_batch_applier_test.cpp @@ -299,7 +299,7 @@ private: std::vector<ChunkType> chunks = {ChunkType{ _sourceUUID, ChunkRange{BSON(_currentShardKey << MINKEY), BSON(_currentShardKey << MAXKEY)}, - ChunkVersion(100, 0, epoch, Timestamp()), + ChunkVersion(100, 0, epoch, Timestamp(1, 1)), _myDonorId}}; auto rt = RoutingTableHistory::makeNew(_sourceNss, @@ -308,7 +308,7 @@ private: nullptr /* defaultCollator */, false /* unique */, std::move(epoch), - Timestamp(), + Timestamp(1, 1), boost::none /* timeseriesFields */, boost::none /* reshardingFields */, boost::none /* chunkSizeBytes */, @@ -316,7 +316,7 @@ private: chunks); return ChunkManager(_myDonorId, - DatabaseVersion(UUID::gen(), Timestamp()), + DatabaseVersion(UUID::gen(), Timestamp(1, 1)), makeStandaloneRoutingTableHistory(std::move(rt)), boost::none /* clusterTime */); } |