Skip to content

Commit 941d35a

Browse files
committed
Bump maximum supported driver wire version to 13.
This is the maxWireVersion reported by MongoDB 5.0. JAVA-4185
1 parent 2044149 commit 941d35a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

driver-core/src/main/com/mongodb/connection/ServerDescription.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class ServerDescription {
6161
* The maximum supported driver wire version
6262
* @since 3.8
6363
*/
64-
public static final int MAX_DRIVER_WIRE_VERSION = 8;
64+
public static final int MAX_DRIVER_WIRE_VERSION = 13;
6565

6666
private static final int DEFAULT_MAX_DOCUMENT_SIZE = 0x1000000; // 16MB
6767

driver-core/src/test/unit/com/mongodb/operation/OperationUnitSpecification.groovy

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ class OperationUnitSpecification extends Specification {
5151
[3, 4]: 5,
5252
[3, 6]: 6,
5353
[4, 0]: 7,
54-
[4, 1]: 8,
55-
[4, 2]: 8
54+
[4, 2]: 8,
55+
[4, 4]: 9,
56+
[5, 0]: 13
5657
]
5758

5859
static int getMaxWireVersionForServerVersion(List<Integer> serverVersion) {

0 commit comments

Comments
 (0)