Page MenuHomeIn-Portal Phabricator

INP-1766 - Change "kDBLoadBalancer::openConnection" to always update last used connection index
ClosedPublic

Authored by alex on May 10 2019, 6:10 AM.

Details

Test Plan
Code fragment
$application->Conn->GetRow('SELECT Name FROM ' . TABLE_PREFIX . 'AdminSkins');
$application->Conn->doInsert(array('Name' => 'tmp-name'), TABLE_PREFIX . 'AdminSkins');
die('insert_id: ' . $application->Conn->getInsertID());
  • in IDE:
    1. open /index.php file for editing
    2. after $application->Init(); line add code shown above test plan
    3. save changes
    4. change /system/config.php file to enable support for load balancing (see example in http://community.in-portal.org/x/Npkk and you can use same server as both slave & master)
  • in Web Browser
    1. open Front-End
    2. confirm, that insert_id: X is displayed, where X is a positive non-zero integer

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex created this revision.May 10 2019, 6:10 AM
alex requested review of this revision.May 10 2019, 6:10 AM
alex edited the test plan for this revision. (Show Details)May 10 2019, 6:14 AM
alex added a project: Restricted Project.
erik accepted this revision.May 13 2019, 5:10 AM
This revision is now accepted and ready to land.May 13 2019, 5:10 AM
This revision was automatically updated to reflect the committed changes.