Skip to content

CDRIVER-4601 Bump maxWireVersion for MongoDB 7.0 #1279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/libmongoc/src/mongoc/mongoc-client-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@

BSON_BEGIN_DECLS

/* Range of wire protocol versions this driver supports. Bumping
* WIRE_VERSION_MAX must be accompanied by an update to
* `_mongoc_wire_version_to_server_version`. */
#define WIRE_VERSION_MIN 6 /* a.k.a. minWireVersion */
#define WIRE_VERSION_MAX 17 /* a.k.a. maxWireVersion */

/* version corresponding to server 3.6 release */
#define WIRE_VERSION_3_6 6
/* version corresponding to server 4.0 release */
#define WIRE_VERSION_4_0 7
/* first version to support hint for "update" command */
Expand Down Expand Up @@ -81,6 +77,12 @@ BSON_BEGIN_DECLS
/* version corresponding to server 7.0 release */
#define WIRE_VERSION_7_0 21

/* Range of wire protocol versions this driver supports. Bumping
* WIRE_VERSION_MAX must be accompanied by an update to
* `_mongoc_wire_version_to_server_version`. */
#define WIRE_VERSION_MIN WIRE_VERSION_3_6 /* a.k.a. minWireVersion */
#define WIRE_VERSION_MAX WIRE_VERSION_7_0 /* a.k.a. maxWireVersion */

struct _mongoc_collection_t;

struct _mongoc_client_t {
Expand Down