[CDRIVER-4665] Client assertions in opts validation breaks existing usage for bulk API Created: 20/Jun/23 Updated: 01/Feb/24 Resolved: 21/Jun/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Bulk API |
| Affects Version/s: | 1.24.0 |
| Fix Version/s: | 1.24.1 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Jeremy Mikola | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
Summary
The PHP driver allows construction of a BulkWrite object independent of a client. This uses mongoc_bulk_operation_new instead of mongoc_collection_create_bulk_operation_with_opts. Applications then append insert, update, and delete operations to this object. At execution time, the BulkWrite object is passed to a client method (e.g. Manager::executeBulkWrite()), which calls mongoc_bulk_operation_set_client to assign the appropriate client. The problematic addition in |
| Comments |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Avoids a duplicate key error in tests |
| Comment by Githook User [ 20/Jun/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
Avoids a duplicate key error in tests |