Improve LoadBalancer::doWait() performance via APC
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 9 Nov 2015 20:44:06 +0000 (12:44 -0800)
committerTim Starling <tstarling@wikimedia.org>
Tue, 10 Nov 2015 05:07:39 +0000 (05:07 +0000)
commitda4a378e74f2e3636b4f1132e4732ec3c2637eb9
treeaee16605a1aa9be3aa1efb0ac56803a5c06ce8c5
parent73d13883bfe0114c2451fb2ec31e203ec93efdd9
Improve LoadBalancer::doWait() performance via APC

* This avoids bothering with MASTER_POS_WAIT() if an equal/higher
  position was already successfully waited on by another process.
* Add DBMasterPos toString() and hasReached() methods, which
  MySQLMasterPos already implemented and used.
* Moved more wfDebug() statements to the 'replication' log.

Change-Id: I423b5fe2da8d97889a6d204a635e351342de7649
includes/db/ChronologyProtector.php
includes/db/DatabaseMysqlBase.php
includes/db/DatabaseUtility.php
includes/db/loadbalancer/LoadBalancer.php
tests/phpunit/includes/db/DatabaseMysqlBaseTest.php