[CDRIVER-2419] Implement mongoc_bulk_operation_set_client_session() Created: 08/Dec/17 Updated: 28/Oct/23 Resolved: 11/Dec/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
PHPC depends on mongoc_bulk_operation_new(), as it allows a bulk operation to be created independently of a client. Currently, mongoc_bulk_operation_t is only associated with an explicit session ID through mongoc_collection_create_bulk_operation_with_opts(), which PHPC cannot use, since the collection is only known at execution time. A mongoc_bulk_operation_set_client_session() setter would allow us to assign the session to a bulk write at execution time, as we currently do for client, database, collection, hint, and write concern. |
| Comments |
| Comment by Githook User [ 11/Dec/17 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: Assertions when setting client and client_session will ensure that the bulk never has a client_session belonging to a foreign client. |
| Comment by Githook User [ 11/Dec/17 ] |
|
Author: {'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}Message: Assertions when setting client and client_session will ensure that the bulk never has a client_session belonging to a foreign client. |
| Comment by Jeremy Mikola [ 08/Dec/17 ] |