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/initialize_operation_session_info.cpp | |
parent | bb71f4a4bea6c030675477d0dce18f77d0ee4b4b (diff) | |
download | mongo-3d42a318626e059b2669356bb5d39056b8fa1b76.tar.gz |
SERVER-30745 Prohibit unsafe comparisons against featureCompatibilityVersion
Diffstat (limited to 'src/mongo/db/initialize_operation_session_info.cpp')
-rw-r--r-- | src/mongo/db/initialize_operation_session_info.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/initialize_operation_session_info.cpp b/src/mongo/db/initialize_operation_session_info.cpp index eeaa6aca278..a3ca5b66eb1 100644 --- a/src/mongo/db/initialize_operation_session_info.cpp +++ b/src/mongo/db/initialize_operation_session_info.cpp @@ -46,8 +46,7 @@ void initializeOperationSessionInfo(OperationContext* opCtx, return; } - if (serverGlobalParams.featureCompatibility.version.load() == - ServerGlobalParams::FeatureCompatibility::Version::k34) { + if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36()) { return; } |