Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-353

Support read preference and write concern in Manager options array

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-alpha1
    • Affects Version/s: 0.6.3
    • Component/s: None
    • None

      The current URI and option parsing logic relies on the mongoc_uri_option_is_TYPE() functions, none of which return true for "w" (since it supports multiple types).

      Additionally, both the read preference and write concern structures are created once when the URI is parsed. Those structures are then set on the client. Changing the URI options for read preferences or write concerns does not update the compiled structures, which means they will need to be processed manually (i.e. get the client's structure, apply new options, and set the changed structure back on the client).

            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: