diff options
Diffstat (limited to 'src/mongo/db/commands/kill_all_sessions_command.cpp')
-rw-r--r-- | src/mongo/db/commands/kill_all_sessions_command.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/kill_all_sessions_command.cpp b/src/mongo/db/commands/kill_all_sessions_command.cpp index 452a25cc6b5..d0ef93cb466 100644 --- a/src/mongo/db/commands/kill_all_sessions_command.cpp +++ b/src/mongo/db/commands/kill_all_sessions_command.cpp @@ -73,7 +73,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()); } @@ -91,7 +92,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())); } |