1MONGOC_WRITE_CONCERN_SET_W(3)      libmongoc     MONGOC_WRITE_CONCERN_SET_W(3)
2
3
4

NAME

6       mongoc_write_concern_set_w - mongoc_write_concern_set_w()
7

SYNOPSIS

9          void
10          mongoc_write_concern_set_w (mongoc_write_concern_t *write_concern, int32_t w);
11

PARAMETERS

13write_concern: A mongoc_write_concern_t.
14
15w: A positive int32_t or zero.
16

DESCRIPTION

18       Sets  the w value for the write concern. See mongoc_write_concern_t for
19       more information on this setting.
20
21       Unacknowledged writes are not causally consistent.  If  you  execute  a
22       write  operation with a mongoc_write_concern_t on which you have called
23       mongoc_write_concern_set_w with a value of 0, the write does  not  par‐
24       ticipate  in  causal  consistency,  even  when  executed  with  a  mon‐
25       goc_client_session_t.
26
27       Beginning in version 1.9.0, this function can now alter the write  con‐
28       cern  after  it  has  been  used in an operation. Previously, using the
29       struct with an operation would mark it as  "frozen"  and  calling  this
30       function would log a warning instead instead of altering the write con‐
31       cern.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.20.0                           Nov 18, 2021    MONGOC_WRITE_CONCERN_SET_W(3)
Impressum