diff options
author | Louis Williams <louis.williams@mongodb.com> | 2017-10-04 16:52:54 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2017-10-06 17:46:07 -0400 |
commit | 3d42a318626e059b2669356bb5d39056b8fa1b76 (patch) | |
tree | 72765174ead0fc800bfc678b7a7ce9152ba586c0 /src/mongo/db/commands/refresh_sessions_command.cpp | |
parent | bb71f4a4bea6c030675477d0dce18f77d0ee4b4b (diff) | |
download | mongo-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.cpp | 6 |
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())); } |