Skip to content

Commit 4618a1c

Browse files
committed
Bump maximum supported wire version to 15
This is the maxWireVersion reported by MongoDB 5.2. JAVA-4441
1 parent 6f2aa50 commit 4618a1c

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
@@ -62,7 +62,7 @@ public class ServerDescription {
6262
* The maximum supported driver wire version
6363
* @since 3.8
6464
*/
65-
public static final int MAX_DRIVER_WIRE_VERSION = 14;
65+
public static final int MAX_DRIVER_WIRE_VERSION = 15;
6666

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class OperationUnitSpecification extends Specification {
5555
[4, 2]: 8,
5656
[4, 4]: 9,
5757
[5, 0]: 13,
58-
[5, 1]: 14
58+
[5, 1]: 14,
59+
[5, 2]: 15,
5960
]
6061

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

0 commit comments

Comments
 (0)