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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.9.0
    • 1.6.3
    • libmongoc, uri

    Description

      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().

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: