|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-02-28 11:58 UTC] uw@php.net
[2014-02-28 12:17 UTC] uw@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: uw
[2014-02-28 12:17 UTC] uw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 03:00:01 2025 UTC |
Description: ------------ I've tested the mysqlnd_ms extension with a simple setup using one master and one slave with eventual consistency (age:1), but the master was always selected for select queries. i found this code and i'm not sure about the correctness of the if statement /* Must be QOS_OPTION_AGE */ if ((lag > 0) && (lag <= filter_data->option_data.age)) { zend_llist_add_element(selected_slaves, &element); } if "seconds behind master" is 0 (zero), the slave should be a possible element. so the if statement should be: /* Must be QOS_OPTION_AGE */ if ((lag >= 0) && (lag <= filter_data->option_data.age)) { zend_llist_add_element(selected_slaves, &element); }