Skip to content

Commit 42fec75

Browse files
authored
Bump maxWireVersion for MongoDB 8.0 (#1442)
JAVA-5511
1 parent e228972 commit 42fec75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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
@@ -63,7 +63,7 @@ public class ServerDescription {
6363
* The maximum supported driver wire version
6464
* @since 3.8
6565
*/
66-
public static final int MAX_DRIVER_WIRE_VERSION = 21;
66+
public static final int MAX_DRIVER_WIRE_VERSION = 25;
6767

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class OperationUnitSpecification extends Specification {
6363
[6, 2]: 19,
6464
[6, 3]: 20,
6565
[7, 0]: 21,
66+
[9, 0]: 25,
6667
]
6768

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

0 commit comments

Comments
 (0)