Add LBFactory::beginMasterChanges() for doing DBO_TRX rounds
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 22 Aug 2016 05:35:12 +0000 (22:35 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 24 Aug 2016 01:09:28 +0000 (18:09 -0700)
commit67f08d69904f248594d20a9513d5d9fd3d80e6c4
tree6b474e73147f6141361e6c4a08b5d264cb434c6b
parent1b21b48210fe54e48272897c030f6aa383c84466
Add LBFactory::beginMasterChanges() for doing DBO_TRX rounds

This is in intended to replace the DataUpdate transaction round logic.
It could also be useful for doing transaction rounds in maintenance
scripts.

Also renamed $db => $conn in a few LB methods for consistency.

Change-Id: If21c2ba5e8bac48c250b96137279e7edaa8289f7
includes/db/DBConnRef.php
includes/db/Database.php
includes/db/IDatabase.php
includes/db/loadbalancer/LBFactory.php
includes/db/loadbalancer/LoadBalancer.php
tests/phpunit/includes/db/DatabaseTest.php
tests/phpunit/includes/installer/DatabaseUpdaterTest.php