1MONGOC_CLIENT_SET_READ_CONCERN(3) libmongoc MONGOC_CLIENT_SET_READ_CONCERN(3)
2
3
4
6 void
7 mongoc_client_set_read_concern (mongoc_client_t *client,
8 const mongoc_read_concern_t *read_concern);
9
10 Sets the read concern for the client. This only affects future opera‐
11 tions, collections, and databases inheriting from client.
12
13 The default read concern is MONGOC_READ_CONCERN_LEVEL_LOCAL. This is
14 the correct read concern for the great majority of applications.
15
16 It is a programming error to call this function on a client from a
17 mongoc_client_pool_t. For pooled clients, set the read concern with the
18 MongoDB URI instead.
19
21 • client: A mongoc_client_t.
22
23 • read_concern: A mongoc_read_concern_t.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.25.1 Nov 08, 2023MONGOC_CLIENT_SET_READ_CONCERN(3)