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

Add write concern option to find_and_modify_with_opts

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • Minor Change

      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.

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

              Created:
              Updated:
              Resolved: