1MONGOC_WRITE_CONCERN_SET_WTAG(3) libmongoc MONGOC_WRITE_CONCERN_SET_WTAG(3)
2
3
4
6 mongoc_write_concern_set_wtag - mongoc_write_concern_set_wtag()
7
9 void
10 mongoc_write_concern_set_wtag (mongoc_write_concern_t *write_concern,
11 const char *tag);
12
14 • write_concern: A mongoc_write_concern_t.
15
16 • tag: A string containing the write tag.
17
19 Sets the write tag that must be satisfied for the write to indicate
20 success. Write tags are preset write concerns configured on your Mon‐
21 goDB server. See mongoc_write_concern_t for more information on this
22 setting.
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.24.3 Aug 17, 2023 MONGOC_WRITE_CONCERN_SET_WTAG(3)