[CDRIVER-1704] Inconsistent application of read/write concern in mongoc_collection_aggregate Created: 14/Oct/16  Updated: 19/Oct/16  Resolved: 19/Oct/16

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

Type: Bug Priority: Major - P3
Reporter: David Golden Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-927 Support sending writeConcern for comm... Closed

 Description   

As discussed on slack:

  • mongoc_collection_aggregate is documented as applying write_concern from the collection but does not appear to so do
  • mongoc_collection_aggregate takes a BSON options documents like other "_with_opts" helpers, but does not follow the same API pattern: allowing write_concern and/or read_concern in options as well as falling back to the collection defaults


 Comments   
Comment by Githook User [ 19/Oct/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1704 Aggregate should apply collection [read|write]Concern if not in opts
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/adfff3aa7fadd61063f82d6c0e5d35d655552d74

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