False slaveOk URI option should be ignored

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.2.6
    • Affects Version/s: 1.2.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: