diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-10-30 15:46:36 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2017-11-09 09:39:44 -0500 |
commit | 271879b7a67c9d9b36778692f2a77e04c6403a1f (patch) | |
tree | a4e8911bcb4ac5a0a494725db9b65e92b0f44ae6 /src/mongo/dbtests/dbtests.cpp | |
parent | 9a7ab2468ec94462890395cc591cd629d1dd9f7c (diff) | |
download | mongo-271879b7a67c9d9b36778692f2a77e04c6403a1f.tar.gz |
SERVER-31631 Bump minimum outgoing wire version for mongod when featureCompatibilityVersion is 3.6
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r-- | src/mongo/dbtests/dbtests.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp index 4fd7416d9fa..0903a83b0c3 100644 --- a/src/mongo/dbtests/dbtests.cpp +++ b/src/mongo/dbtests/dbtests.cpp @@ -65,11 +65,17 @@ const auto kIndexVersion = IndexDescriptor::IndexVersion::kV2; void initWireSpec() { WireSpec& spec = WireSpec::instance(); - // accept from any version - spec.incoming.minWireVersion = RELEASE_2_4_AND_BEFORE; - spec.incoming.maxWireVersion = LATEST_WIRE_VERSION; - // connect to any version - spec.outgoing.minWireVersion = RELEASE_2_4_AND_BEFORE; + + // Accept from internal clients of the same version, as in upgrade featureCompatibilityVersion. + spec.incomingInternalClient.minWireVersion = LATEST_WIRE_VERSION; + spec.incomingInternalClient.maxWireVersion = LATEST_WIRE_VERSION; + + // Accept from any version external client. + spec.incomingExternalClient.minWireVersion = RELEASE_2_4_AND_BEFORE; + spec.incomingExternalClient.maxWireVersion = LATEST_WIRE_VERSION; + + // Connect to servers of the same version, as in upgrade featureCompatibilityVersion. + spec.outgoing.minWireVersion = LATEST_WIRE_VERSION; spec.outgoing.maxWireVersion = LATEST_WIRE_VERSION; } |