summaryrefslogtreecommitdiff
path: root/src/mongo/db/fcv_op_observer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/fcv_op_observer.cpp')
-rw-r--r--src/mongo/db/fcv_op_observer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/fcv_op_observer.cpp b/src/mongo/db/fcv_op_observer.cpp
index 723977bf917..ce9eb8f8fcc 100644
--- a/src/mongo/db/fcv_op_observer.cpp
+++ b/src/mongo/db/fcv_op_observer.cpp
@@ -48,6 +48,7 @@
#include "mongo/util/assert_util.h"
namespace mongo {
+using FeatureCompatibilityParams = ServerGlobalParams::FeatureCompatibility;
void FcvOpObserver::_setVersion(OperationContext* opCtx,
ServerGlobalParams::FeatureCompatibility::Version newVersion) {
@@ -86,8 +87,10 @@ void FcvOpObserver::_setVersion(OperationContext* opCtx,
// 2. Setting featureCompatibilityVersion from fullyDowngraded to upgrading.
// (Generic FCV reference): This FCV check should exist across LTS binary versions.
const auto shouldIncrementTopologyVersion =
- newVersion == ServerGlobalParams::FeatureCompatibility::kLastLTS ||
- newVersion == ServerGlobalParams::FeatureCompatibility::Version::kUpgradingFrom44To47;
+ newVersion == FeatureCompatibilityParams::kLastLTS ||
+ newVersion == FeatureCompatibilityParams::kLastContinuous ||
+ newVersion == FeatureCompatibilityParams::kUpgradingFromLastLTSToLatest ||
+ newVersion == FeatureCompatibilityParams::kUpgradingFromLastContinuousToLatest;
if (isReplSet && shouldIncrementTopologyVersion) {
replCoordinator->incrementTopologyVersion();
}