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

_mongoc_uri_build_write_concern() should report unsupported "w" option as error

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.9.0
    • Affects Version/s: 1.6.3
    • Component/s: libmongoc, uri

      When CDRIVER-782 added error reporting for URI parsing, it updated _mongoc_uri_assign_read_prefs_mode() to report errors for unsupported read preference modes. For consistency, _mongoc_uri_build_write_concern() should also report an error if the "w" option is unsupported (as-is, it only logs a warning). This appears to be the lone case that was missed in CDRIVER-782, since conflicts between "journal" and "w" are caught by mongoc_write_concern_is_valid() in mongoc_uri_new_with_error().

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: