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

False slaveOk URI option should be ignored

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.6
    • Affects Version/s: 1.2.3
    • Component/s: None
    • None

      The current logic in php_phongo_apply_rp_options_to_uri() always assigns a "secondaryPreferred" read preference mode if the "slaveOk" option is found. It should check that the option is also true.

      Based on the logic in libmongoc's URI parser, a false value for "slaveOk" should have no affect on the read preference.

            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: