Ubuntu Manpages

  • bulk: A mongoc_bulk_operation_t.
  • reply: A maybe-NULL pointer to overwritable storage for a bson_t to contain the results.
  • error: An optional location for a bson_error_t or NULL.

Errors are propagated via the error parameter.

On success, returns the server id used. On failure, returns 0 and sets error.

A write concern timeout or write concern error is considered a failure.

The reply document counts operations and collects error information. See Bulk Write Operations for examples.

SEE ALSO:

Bulk Write Operations

mongoc_bulk_operation_get_hint(), which gets the id of the server used even if the operation failed.



MongoDB, Inc

2017-present, MongoDB, Inc