Skip to content

Commit c957a99

Browse files
committed
CDRIVER-2558 add "snapshot" readConcern
1 parent 81f7d65 commit c957a99

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libmongoc/doc/mongoc_read_concern_t.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ MONGOC_READ_CONCERN_LEVEL_LOCAL Level "local", the default. 3.2
3030
MONGOC_READ_CONCERN_LEVEL_MAJORITY Level "majority". 3.2
3131
MONGOC_READ_CONCERN_LEVEL_LINEARIZABLE Level "linearizable". 3.4
3232
MONGOC_READ_CONCERN_LEVEL_AVAILABLE Level "available". 3.6
33+
MONGOC_READ_CONCERN_LEVEL_SNAPSHOT Level "snapshot". 4.0
3334
====================================== =========================== =====================
3435

3536
For the sake of compatibility with future versions of MongoDB, :symbol:`mongoc_read_concern_set_level` allows any string, not just this list of known read concern levels.

src/libmongoc/src/mongoc/mongoc-read-concern.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ BSON_BEGIN_DECLS
3232
#define MONGOC_READ_CONCERN_LEVEL_LOCAL "local"
3333
#define MONGOC_READ_CONCERN_LEVEL_MAJORITY "majority"
3434
#define MONGOC_READ_CONCERN_LEVEL_LINEARIZABLE "linearizable"
35+
#define MONGOC_READ_CONCERN_LEVEL_SNAPSHOT "snapshot"
3536

3637
typedef struct _mongoc_read_concern_t mongoc_read_concern_t;
3738

0 commit comments

Comments
 (0)