[CDRIVER-1075] Generic command functions shouldn't use client's read and write concern Created: 26/Jan/16  Updated: 24/Oct/16  Resolved: 24/Oct/16

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

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

Issue Links:
Related
related to CDRIVER-1031 ReadConcern should be inherited from ... Closed

 Description   

mongoc_database_command and mongoc_database_command_simple run the command with the client object's read concern and write concern. The spec says the opposite:

If your driver offers a generic RunCommand method on your database object, ReadConcern MUST not be applied automatically to any command. A user wishing to use a ReadConcern in a generic command must supply it manually.

https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#generic-command-method

Same for write concern.



 Comments   
Comment by A. Jesse Jiryu Davis [ 24/Oct/16 ]

Fixed in the course of CDRIVER-1527.

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