1MONGOC_WRITE_CONCERN_SET_WMAJORITY(3l)ibmongMoOcNGOC_WRITE_CONCERN_SET_WMAJORITY(3)
2
3
4
6 mongoc_write_concern_set_wmajority - mongoc_write_concern_set_wmajor‐
7 ity()
8
10 void
11 mongoc_write_concern_set_wmajority (mongoc_write_concern_t *write_concern,
12 int32_t wtimeout_msec);
13
15 • write_concern: A mongoc_write_concern_t.
16
17 • wtimeout_msec: A positive int32_t or zero. If you need to set wtime‐
18 out with an int64_t, use mongoc_write_concern_set_wtimeout_int64.
19
21 Sets if the write must have been propagated to a majority of nodes be‐
22 fore indicating write success.
23
24 The timeout specifies how long, in milliseconds, the server should wait
25 before indicating that the write has failed. This is not the same as a
26 socket timeout. A value of zero may be used to indicate no timeout.
27
28 Beginning in version 1.9.0, this function can now alter the write con‐
29 cern after it has been used in an operation. Previously, using the
30 struct with an operation would mark it as "frozen" and calling this
31 function would log a warning instead instead of altering the write con‐
32 cern.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.20.0 Nov 18, 2M0O2N1GOC_WRITE_CONCERN_SET_WMAJORITY(3)