1MONGOC_BULK_OPERATION_SET_COMMENT(3)libmongoMcONGOC_BULK_OPERATION_SET_COMMENT(3)
2
3
4
6 mongoc_bulk_operation_set_comment - mongoc_bulk_operation_set_comment()
7
9 void
10 mongoc_bulk_operation_set_comment (
11 mongoc_bulk_operation_t *bulk, const bson_value_t *comment);
12
14 • bulk: A mongoc_bulk_operation_t.
15
16 • comment: A bson_value_t specifying the comment to associate with this
17 bulk write.
18
20 Assigns a comment to attach to all commands executed as part of this
21 bulk. The comment will appear in log messages, profiler output, and
22 currentOp output. Comments for write commands are only supported by
23 MongoDB 4.4+.
24
25 It is prohibited to call this function after adding operations to the
26 bulk.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.23.1 Oct 20, 20M2O2NGOC_BULK_OPERATION_SET_COMMENT(3)