[CDRIVER-570] Executing bulk operation without write concern should inherit from client Created: 10/Mar/15  Updated: 19/Oct/16  Resolved: 11/Mar/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.2

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Mira Carey
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-554 Collection-level update and bulk func... Closed
Tested
tested by CDRIVER-660 Test bulk result's writeConcernError ... Closed
tested by CDRIVER-661 Test that bulk writeConcern is proper... Closed

 Comments   
Comment by Githook User [ 12/Mar/15 ]

Author:

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

Message: CDRIVER-570: Executing bulk without write concern should inherit from client

When using mongoc_bulk_operation_new() to construct a bulk operation (not through a collection), one would expect the client's write concern to be used at execution time if an explicit write concern is not set on the bulk operation. That functionality is already handled by _mongoc_write_command_execute(), but it requires we not initialize a new write concern on the bulk operation.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/605b09025995d14adc02912dca0907310bb62a5a

Comment by Githook User [ 10/Mar/15 ]

Author:

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

Message: CDRIVER-570: Executing bulk without write concern should inherit from client

When using mongoc_bulk_operation_new() to construct a bulk operation (not through a collection), one would expect the client's write concern to be used at execution time if an explicit write concern is not set on the bulk operation. That functionality is already handled by _mongoc_write_command_execute(), but it requires we not initialize a new write concern on the bulk operation.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/605b09025995d14adc02912dca0907310bb62a5a

Comment by Jeremy Mikola [ 10/Mar/15 ]

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

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