Skip to content

Commit cb3a874

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-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
@@ -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 = 9;
65+
public static final int MAX_DRIVER_WIRE_VERSION = 13;
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class OperationUnitSpecification extends Specification {
5353
[4, 0]: 7,
5454
[4, 1]: 8,
5555
[4, 2]: 8,
56-
[4, 3]: 9,
57-
[4, 4]: 9
56+
[4, 4]: 9,
57+
[5, 0]: 13
5858
]
5959

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

0 commit comments

Comments
 (0)