mongoc_bulk_operation_set_comment(3)

mongoc_bulk_operation_set_comment3

Usage

void
mongoc_bulk_operation_set_comment (
   mongoc_bulk_operation_t *bulk, const bson_value_t *comment);

Parameters

•

bulk: A mongoc_bulk_operation_t.

•

comment: A bson_value_t specifying the comment to associate with this bulk write.

Overview

Assigns a comment to attach to all commands executed as part of this bulk. The comment will appear in log messages, profiler output, and currentOp output. Comments for write commands are only supported by MongoDB 4.4+.

It is prohibited to call this function after adding operations to the bulk.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.