Skip to content

Commit a2fdd62

Browse files
authored
CDRIVER-4601 Bump maxWireVersion for MongoDB 7.0 (#1279)
* move WIRE_VERSION_MIN and WIRE_VERSION_MAX below other `WIRE_VERSION_*` macros To reference other `WIRE_VERSION_*` macros * bump WIRE_VERSION_MAX to WIRE_VERSION_7_0 * add WIRE_VERSION_3_6 macro
1 parent 6a0a3d1 commit a2fdd62

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/libmongoc/src/mongoc/mongoc-client-private.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@
4141

4242
BSON_BEGIN_DECLS
4343

44-
/* Range of wire protocol versions this driver supports. Bumping
45-
* WIRE_VERSION_MAX must be accompanied by an update to
46-
* `_mongoc_wire_version_to_server_version`. */
47-
#define WIRE_VERSION_MIN 6 /* a.k.a. minWireVersion */
48-
#define WIRE_VERSION_MAX 17 /* a.k.a. maxWireVersion */
49-
44+
/* version corresponding to server 3.6 release */
45+
#define WIRE_VERSION_3_6 6
5046
/* version corresponding to server 4.0 release */
5147
#define WIRE_VERSION_4_0 7
5248
/* first version to support hint for "update" command */
@@ -81,6 +77,12 @@ BSON_BEGIN_DECLS
8177
/* version corresponding to server 7.0 release */
8278
#define WIRE_VERSION_7_0 21
8379

80+
/* Range of wire protocol versions this driver supports. Bumping
81+
* WIRE_VERSION_MAX must be accompanied by an update to
82+
* `_mongoc_wire_version_to_server_version`. */
83+
#define WIRE_VERSION_MIN WIRE_VERSION_3_6 /* a.k.a. minWireVersion */
84+
#define WIRE_VERSION_MAX WIRE_VERSION_7_0 /* a.k.a. maxWireVersion */
85+
8486
struct _mongoc_collection_t;
8587

8688
struct _mongoc_client_t {

0 commit comments

Comments
 (0)