1MONGOC_CLIENT_SET_WRITE_CONCERN(3) libmongocMONGOC_CLIENT_SET_WRITE_CONCERN(3)
2
3
4

NAME

6       mongoc_client_set_write_concern - mongoc_client_set_write_concern()
7

SYNOPSIS

9          void
10          mongoc_client_set_write_concern (mongoc_client_t *client,
11                                           const mongoc_write_concern_t *write_concern);
12
13       Sets  the write concern for the client. This only affects future opera‐
14       tions, collections, and databases inheriting from client.
15
16       The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver
17       blocks awaiting basic acknowledgement of write operations from MongoDB.
18       This is the correct write concern for the great  majority  of  applica‐
19       tions.
20
21       It is a programming error to call this function on a client from a mon‐
22       goc_client_pool_t. For pooled clients, set the write concern  with  the
23       MongoDB URI instead.
24

PARAMETERS

26       · client: A mongoc_client_t.
27
28       · write_concern: A mongoc_write_concern_t.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.16.2                           Feb 25, 2020MONGOC_CLIENT_SET_WRITE_CONCERN(3)
Impressum