summaryrefslogtreecommitdiff
path: root/src/mongo/s/routing_table_history_test.cpp
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2021-10-04 09:36:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-04 10:31:15 +0000
commitf4aa2b0e25976facd7bda02872e2a46205975dcc (patch)
tree57c4217814fcaee99b02d5dbcb3843e9088f64f2 /src/mongo/s/routing_table_history_test.cpp
parent3008af2319af2098f4691612f31a431c52ccc52c (diff)
downloadmongo-f4aa2b0e25976facd7bda02872e2a46205975dcc.tar.gz
SERVER-60385 Timeseries fields aren't immutable anymore
Diffstat (limited to 'src/mongo/s/routing_table_history_test.cpp')
-rw-r--r--src/mongo/s/routing_table_history_test.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/mongo/s/routing_table_history_test.cpp b/src/mongo/s/routing_table_history_test.cpp
index 72de94f95f8..676dc94d021 100644
--- a/src/mongo/s/routing_table_history_test.cpp
+++ b/src/mongo/s/routing_table_history_test.cpp
@@ -71,7 +71,8 @@ RoutingTableHistory splitChunk(const RoutingTableHistory& rt,
newChunks.emplace_back(*rt.getUUID(), range, curVersion, kThisShard);
}
- return rt.makeUpdated(boost::none, boost::none, true, newChunks);
+ return rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, newChunks);
}
/**
@@ -362,7 +363,8 @@ TEST_F(RoutingTableHistoryTest, TestSplits) {
ChunkVersion{2, 2, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, chunks1);
+ auto rt1 =
+ rt.makeUpdated(boost::none /* timeseriesFields */, boost::none, boost::none, true, chunks1);
auto v1 = ChunkVersion{2, 2, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
@@ -380,7 +382,8 @@ TEST_F(RoutingTableHistoryTest, TestSplits) {
ChunkVersion{3, 2, epoch, timestamp},
kThisShard}};
- auto rt2 = rt1.makeUpdated(boost::none, boost::none, true, chunks2);
+ auto rt2 = rt1.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, chunks2);
auto v2 = ChunkVersion{3, 2, epoch, timestamp};
ASSERT_EQ(v2, rt2.getVersion(kThisShard));
}
@@ -420,7 +423,8 @@ TEST_F(RoutingTableHistoryTest, TestReplaceEmptyChunk) {
ChunkVersion{2, 2, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, changedChunks);
+ auto rt1 = rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, changedChunks);
auto v1 = ChunkVersion{2, 2, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
ASSERT_EQ(rt1.numChunks(), 2);
@@ -478,7 +482,8 @@ TEST_F(RoutingTableHistoryTest, TestUseLatestVersions) {
ChunkVersion{2, 2, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, changedChunks);
+ auto rt1 = rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, changedChunks);
auto v1 = ChunkVersion{2, 2, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
ASSERT_EQ(rt1.numChunks(), 2);
@@ -523,7 +528,8 @@ TEST_F(RoutingTableHistoryTest, TestOutOfOrderVersion) {
ChunkVersion{3, 1, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, changedChunks);
+ auto rt1 = rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, changedChunks);
auto v1 = ChunkVersion{3, 1, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
ASSERT_EQ(rt1.numChunks(), 2);
@@ -578,7 +584,8 @@ TEST_F(RoutingTableHistoryTest, TestMergeChunks) {
ChunkVersion{3, 1, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, changedChunks);
+ auto rt1 = rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, changedChunks);
auto v1 = ChunkVersion{3, 1, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
ASSERT_EQ(rt1.numChunks(), 2);
@@ -628,7 +635,8 @@ TEST_F(RoutingTableHistoryTest, TestMergeChunksOrdering) {
ChunkVersion{3, 1, epoch, timestamp},
kThisShard}};
- auto rt1 = rt.makeUpdated(boost::none, boost::none, true, changedChunks);
+ auto rt1 = rt.makeUpdated(
+ boost::none /* timeseriesFields */, boost::none, boost::none, true, changedChunks);
auto v1 = ChunkVersion{3, 1, epoch, timestamp};
ASSERT_EQ(v1, rt1.getVersion(kThisShard));
ASSERT_EQ(rt1.numChunks(), 2);