1MONGOC_READ_CONCERN_SET_LEVEL(3) libmongoc MONGOC_READ_CONCERN_SET_LEVEL(3)
2
3
4
6 mongoc_read_concern_set_level - mongoc_read_concern_set_level()
7
9 bool
10 mongoc_read_concern_set_level (mongoc_read_concern_t *read_concern,
11 const char *level);
12
14 · read_concern: A mongoc_read_concern_t.
15
16 · level: The readConcern level to use.
17
19 Sets the read concern level. See mongoc_read_concern_t for details.
20
21 Beginning in version 1.9.0, this function can now alter the read con‐
22 cern after it has been used in an operation. Previously, using the
23 struct with an operation would mark it as "frozen" and calling this
24 function would return false instead of altering the read concern.
25
27 Returns true if the read concern level was set, or false otherwise.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.16.2 Feb 25, 2020 MONGOC_READ_CONCERN_SET_LEVEL(3)