summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/refresh_sessions_command.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2017-10-04 16:52:54 -0400
committerLouis Williams <louis.williams@mongodb.com>2017-10-06 17:46:07 -0400
commit3d42a318626e059b2669356bb5d39056b8fa1b76 (patch)
tree72765174ead0fc800bfc678b7a7ce9152ba586c0 /src/mongo/db/commands/refresh_sessions_command.cpp
parentbb71f4a4bea6c030675477d0dce18f77d0ee4b4b (diff)
downloadmongo-3d42a318626e059b2669356bb5d39056b8fa1b76.tar.gz
SERVER-30745 Prohibit unsafe comparisons against featureCompatibilityVersion
Diffstat (limited to 'src/mongo/db/commands/refresh_sessions_command.cpp')
-rw-r--r--src/mongo/db/commands/refresh_sessions_command.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/commands/refresh_sessions_command.cpp b/src/mongo/db/commands/refresh_sessions_command.cpp
index 452894bd24f..c8dc0b31914 100644
--- a/src/mongo/db/commands/refresh_sessions_command.cpp
+++ b/src/mongo/db/commands/refresh_sessions_command.cpp
@@ -62,8 +62,7 @@ public:
const std::string& dbname,
const BSONObj& cmdObj) override {
- if (serverGlobalParams.featureCompatibility.version.load() ==
- ServerGlobalParams::FeatureCompatibility::Version::k34) {
+ if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
return SessionsCommandFCV34Status(getName());
}
@@ -84,8 +83,7 @@ public:
const BSONObj& cmdObj,
BSONObjBuilder& result) override {
- if (serverGlobalParams.featureCompatibility.version.load() ==
- ServerGlobalParams::FeatureCompatibility::Version::k34) {
+ if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) {
return appendCommandStatus(result, SessionsCommandFCV34Status(getName()));
}