PARAMETERS
- Provided by: libmongoc-doc (Version: 2.2.2-1)
- Source: mongo-c-driver
- Report a bug
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 <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/bulk/> for examples.
See also:
Bulk Write Operations <https://www.mongodb.com/docs/languages/c/c-driver/current/libmongoc/guides/bulk/>
mongoc_bulk_operation_get_server_id() <>, which gets the id of the server used even if the operation failed.
MongoDB, Inc
2009-present, MongoDB, Inc.