[CDRIVER-2779] mongoc_collection_create_index_with_opts ignores collection writeConcern Created: 30/Jul/18  Updated: 28/Oct/23  Resolved: 30/Jul/18

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.5.0
Fix Version/s: 1.13.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Test option inheritance

 Description   

If no writeConcern is passed to mongoc_collection_create_index_with_opts, it should use the collection's writeConcern, but in fact it uses the default writeConcern.

The NEWS entry for 1.5.0 claiming "mongoc_collection_create_index_with_opts now applies the collection's write concern if none is specified in opts" seems to have been wrong all along.



 Comments   
Comment by Githook User [ 30/Jul/18 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: CDRIVER-2779 createIndexes inherits collection wc

If no writeConcern is passed to mongoc_collection_create_index_with_opts
it should use the collection's writeConcern.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/fa13b3417cf1508769e1710d8058b63b275696e8

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