1MONGOC_WRITE_CONCERN_SET_WTIMEOUMTo(n3g)oDB C DrMiOvNeGrOC_WRITE_CONCERN_SET_WTIMEOUT(3)
2
3
4
6 mongoc_write_concern_set_wtimeout - mongoc_write_concern_set_wtimeout()
7
9 void
10 mongoc_write_concern_set_wtimeout (mongoc_write_concern_t *write_concern,
11 int32_t wtimeout_msec);
12
14 · write_concern: A mongoc_write_concern_t.
15
16 · wtimeout_msec: A positive int32_t or zero.
17
19 Set the timeout in milliseconds that the server should wait before
20 returning with a write concern timeout. This is not the same as a
21 socket timeout. A value of zero may be used to indicate no write con‐
22 cern 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.14.0 Feb 22, 20M1O9NGOC_WRITE_CONCERN_SET_WTIMEOUT(3)