diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-10-25 12:07:41 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-10-27 16:24:18 -0400 |
commit | ba9fe259f54fe41e2694d59809be5f42911bbe4b (patch) | |
tree | 79b80b1676f2beb7cd11c22157a53f5e54132cf5 /src/mongo/db/commands/feature_compatibility_version.cpp | |
parent | 58da3876b02408e5c19927f1b342b8e40835bc86 (diff) | |
download | mongo-ba9fe259f54fe41e2694d59809be5f42911bbe4b.tar.gz |
SERVER-31633 If the featureCompatibilityVersion is 3.6, upgrading, or downgrading, respond to isMaster with minWireVersion=maxWireVersion
Diffstat (limited to 'src/mongo/db/commands/feature_compatibility_version.cpp')
-rw-r--r-- | src/mongo/db/commands/feature_compatibility_version.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/feature_compatibility_version.cpp b/src/mongo/db/commands/feature_compatibility_version.cpp index a96335aca1a..45f430a5a24 100644 --- a/src/mongo/db/commands/feature_compatibility_version.cpp +++ b/src/mongo/db/commands/feature_compatibility_version.cpp @@ -337,8 +337,7 @@ void FeatureCompatibilityVersion::onInsertOrUpdate(OperationContext* opCtx, cons serverGlobalParams.featureCompatibility.setVersion(newVersion); // Close all connections from internal clients with binary versions lower than 3.6. - if (newVersion == ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36 || - newVersion == ServerGlobalParams::FeatureCompatibility::Version::kUpgradingTo36) { + if (newVersion != ServerGlobalParams::FeatureCompatibility::Version::kFullyDowngradedTo34) { opCtx->getServiceContext()->getServiceEntryPoint()->endAllSessions( transport::Session::kLatestVersionInternalClientKeepOpen | transport::Session::kExternalClientKeepOpen); |