Skip to content

Commit 3d00a87

Browse files
committed
Bump maximum supported driver wire version to 14. (#785)
This is the maxWireVersion reported by MongoDB 5.1. JAVA-4306
1 parent 1c64494 commit 3d00a87

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 = 13;
64+
public static final int MAX_DRIVER_WIRE_VERSION = 14;
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
@@ -53,7 +53,8 @@ class OperationUnitSpecification extends Specification {
5353
[4, 0]: 7,
5454
[4, 2]: 8,
5555
[4, 4]: 9,
56-
[5, 0]: 13
56+
[5, 0]: 13,
57+
[5, 1]: 14
5758
]
5859

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

0 commit comments

Comments
 (0)