-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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.