Skip to content

Commit 8624506

Browse files
committed
Bump maximum supported wire version to 15
This is the maxWireVersion reported by MongoDB 5.2. JAVA-4441
1 parent 0da658e commit 8624506

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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 = 14;
64+
public static final int MAX_DRIVER_WIRE_VERSION = 15;
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class OperationUnitSpecification extends Specification {
5454
[4, 2]: 8,
5555
[4, 4]: 9,
5656
[5, 0]: 13,
57-
[5, 1]: 14
57+
[5, 1]: 14,
58+
[5, 2]: 15,
5859
]
5960

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

0 commit comments

Comments
 (0)