summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r--src/mongo/dbtests/dbtests.cpp16
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;
}