-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
Affects Version/s: None
-
None
-
Major Change
Contradicting the Bulk API spec, the driver allows multiple calls to the same mongoc_bulk_operation_execute ().
If the bulk operation is only updates or removes then they'll be run twice. If inserts are included, the driver prepends object ids to the documents for insertion before the first execution, so the inserts fail with duplicate key error on the second and subsequent executions.
API change, can't do it until 2.0.