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

URI parsing should not assume write concern defaults

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.4
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: