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

URI parsing should not assume write concern defaults

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.1.4
    • None
    • None
    • None

    Description

      I noticed that (_mongoc_uri_build_write_concern() parses w=1 as MONGOC_WRITE_CONCERN_W_DEFAULT. Combined with CDRIVER-580, this means the driver could send an empty write concern to the server, which could result in an unexpected server-side default being applied.

      Attachments

        Activity

          People

            jmikola@mongodb.com Jeremy Mikola
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: