[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:
Related
related to CDRIVER-3448 Document mongoc_bulk_operation_set_cl... Closed

 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: CDRIVER-2419 mongoc_bulk_operation_set_client_session

Assertions when setting client and client_session will ensure that the bulk never has a client_session belonging to a foreign client.
Branch: r1.9
https://github.com/mongodb/mongo-c-driver/commit/b825d5d1293c6d7023af1ad4a083dade5b4826b6

Comment by Githook User [ 11/Dec/17 ]

Author:

{'name': 'Jeremy Mikola', 'email': 'jmikola@gmail.com', 'username': 'jmikola'}

Message: CDRIVER-2419 mongoc_bulk_operation_set_client_session

Assertions when setting client and client_session will ensure that the bulk never has a client_session belonging to a foreign client.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8b0e8f55db9df7ed171d913a0b0f1fde3a0fdb54

Comment by Jeremy Mikola [ 08/Dec/17 ]

https://github.com/mongodb/mongo-c-driver/pull/470

Generated at Wed Feb 07 21:15:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.