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

SYNOPSIS

6          void
7          mongoc_write_concern_set_w (mongoc_write_concern_t *write_concern, int32_t w);
8

PARAMETERS

10write_concern: A mongoc_write_concern_t.
11
12w: A positive int32_t or zero.
13

DESCRIPTION

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

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.25.1                           Nov 08, 2023    MONGOC_WRITE_CONCERN_SET_W(3)
Impressum