summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-10-26 10:34:39 -0400
committerJudah Schvimer <judah@mongodb.com>2017-10-26 10:34:39 -0400
commit0d8371f7e13b3455506f62d8e9129e4e66ed9a15 (patch)
tree135564174ed97cb774d645486d7c2db472939c02 /src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp
parent253d4c559450238d786e03d3c3118f02e6b9358f (diff)
downloadmongo-0d8371f7e13b3455506f62d8e9129e4e66ed9a15.tar.gz
SERVER-31608 remove FCV getters
Diffstat (limited to 'src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp')
-rw-r--r--src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp b/src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp
index 30590d93739..d0f7b0d1368 100644
--- a/src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp
+++ b/src/mongo/db/commands/kill_all_sessions_by_pattern_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()));
}