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

Add write concern option to find_and_modify_with_opts

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.8.0
    • None
    • libmongoc
    • None
    • Minor Change

    Description

      The findAndModify command accepts a write concern option different from the collection-wide write concern. As such, mongoc_collection_find_and_modify_with_opts should accept a write concern as an option via find_and_modify_opts_t.

      According to read/write concern spec, this function should also throw an error if a write concern is specified and maxWireVersion < 4.

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: