Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1075

Generic command functions shouldn't use client's read and write concern

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.3.0
    • Component/s: libmongoc
    • None

      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.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: