From 4199e981751f660c16e4909deccb9f5c7578754d Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Tue, 24 Oct 2017 11:01:56 -0400 Subject: SERVER-31608 future-proof FCV enum --- src/mongo/db/repl/replication_consistency_markers_impl_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/repl/replication_consistency_markers_impl_test.cpp') diff --git a/src/mongo/db/repl/replication_consistency_markers_impl_test.cpp b/src/mongo/db/repl/replication_consistency_markers_impl_test.cpp index 105613c516f..69a233379ed 100644 --- a/src/mongo/db/repl/replication_consistency_markers_impl_test.cpp +++ b/src/mongo/db/repl/replication_consistency_markers_impl_test.cpp @@ -317,7 +317,7 @@ TEST_F(ReplicationConsistencyMarkersTest, OplogTruncateAfterPointUpgrade) { // Set the feature compatibility version to 3.6. serverGlobalParams.featureCompatibility.setVersion( - ServerGlobalParams::FeatureCompatibility::Version::k36); + ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36); // Check that we see no oplog truncate after point in FCV 3.6. ASSERT(consistencyMarkers.getOplogTruncateAfterPoint(opCtx).isNull()); @@ -325,7 +325,7 @@ TEST_F(ReplicationConsistencyMarkersTest, OplogTruncateAfterPointUpgrade) { // Set the feature compatibility version to 3.4. serverGlobalParams.featureCompatibility.setVersion( - ServerGlobalParams::FeatureCompatibility::Version::k34); + ServerGlobalParams::FeatureCompatibility::Version::kFullyDowngradedTo34); // Check that we see the old oplog delete from point in FCV 3.4. ASSERT_EQ(consistencyMarkers.getOplogTruncateAfterPoint(opCtx), time1); @@ -348,7 +348,7 @@ TEST_F(ReplicationConsistencyMarkersTest, OplogTruncateAfterPointUpgrade) { // Set the feature compatibility version to 3.6. serverGlobalParams.featureCompatibility.setVersion( - ServerGlobalParams::FeatureCompatibility::Version::k36); + ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36); // Check that after removing the old oplog delete from point, that we do not see the oplog // truncate after point in FCV 3.6. -- cgit v1.2.1