1MONGOC_WRITE_CONCERN_SET_WMAJORITY(3l)ibmongMoOcNGOC_WRITE_CONCERN_SET_WMAJORITY(3)
2
3
4
6 void
7 mongoc_write_concern_set_wmajority (mongoc_write_concern_t *write_concern,
8 int32_t wtimeout_msec);
9
11 • write_concern: A mongoc_write_concern_t.
12
13 • wtimeout_msec: A positive int32_t or zero. If you need to set wtime‐
14 out with an int64_t, use mongoc_write_concern_set_wtimeout_int64().
15
17 Sets if the write must have been propagated to a majority of nodes be‐
18 fore indicating write success.
19
20 The timeout specifies how long, in milliseconds, the server should wait
21 before indicating that the write has failed. This is not the same as a
22 socket timeout. A value of zero may be used to indicate no timeout.
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
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.25.1 Nov 08, 2M0O2N3GOC_WRITE_CONCERN_SET_WMAJORITY(3)