summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/refresh_logical_session_cache_now.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/refresh_logical_session_cache_now.cpp')
-rw-r--r--src/mongo/db/commands/refresh_logical_session_cache_now.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/refresh_logical_session_cache_now.cpp b/src/mongo/db/commands/refresh_logical_session_cache_now.cpp
index cf4d6a713c4..8629d98e287 100644
--- a/src/mongo/db/commands/refresh_logical_session_cache_now.cpp
+++ b/src/mongo/db/commands/refresh_logical_session_cache_now.cpp
@@ -66,7 +66,8 @@ public:
const std::string& dbname,
const BSONObj& cmdObj) override {
- if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
+ if (serverGlobalParams.featureCompatibility.getVersion() !=
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) {
return SessionsCommandFCV34Status(getName());
}
@@ -78,7 +79,8 @@ public:
const BSONObj& cmdObj,
BSONObjBuilder& result) override {
- if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
+ if (serverGlobalParams.featureCompatibility.getVersion() !=
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) {
return appendCommandStatus(result, SessionsCommandFCV34Status(getName()));
}