[CDRIVER-656] Wrong error index with bulk write commands Created: 15/May/15 Updated: 03/May/17 Resolved: 16/Jun/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Bulk API, libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
With a unique index on "a", do two operations in an ordered mongoc_bulk_operation_t:
The second operation fails because it violates the unique constraint on "a". When mongoc_bulk_operation_execute uses OP_INSERT and OP_UPDATE it correctly fills the reply with:
But if the bulk operation uses write commands, the error index is 0. |
| Comments |
| Comment by Githook User [ 16/Jun/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: refactor write commands Send insert, update, and delete commands with the same function.
|