Inserting a document larger than 16MB sometimes sets error.domain to MONGOC_ERROR_COMMAND with a legacy insert, sometimes MONGOC_ERROR_QUERY with an insert command. It should always be MONGOC_ERROR_BSON.
mongoc_collection_insert, insert_bulk, update, and delete sometimes set error.domain to MONGOC_ERROR_COLLECTION, sometimes to MONGOC_ERROR_COMMAND.
- depends on
-
CDRIVER-654 Ordered bulk insert continues past oversized doc
- Closed
- is related to
-
CDRIVER-644 bson_error_t's "code" is often wrong
- Closed