1MONGOC_WRITE_CONCERN_SET_WTAG(3) libmongoc MONGOC_WRITE_CONCERN_SET_WTAG(3)
2
3
4
6 void
7 mongoc_write_concern_set_wtag (mongoc_write_concern_t *write_concern,
8 const char *tag);
9
11 • write_concern: A mongoc_write_concern_t.
12
13 • tag: A string containing the write tag.
14
16 Sets the write tag that must be satisfied for the write to indicate
17 success. Write tags are preset write concerns configured on your Mon‐
18 goDB server. See mongoc_write_concern_t for more information on this
19 setting.
20
21 Beginning in version 1.9.0, this function can now alter the write con‐
22 cern after it has been used in an operation. Previously, using the
23 struct with an operation would mark it as "frozen" and calling this
24 function would log a warning instead instead of altering the write con‐
25 cern.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.25.1 Nov 08, 2023 MONGOC_WRITE_CONCERN_SET_WTAG(3)