Make getLagFromPtHeartbeat() always use the LB cluster master entry
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 4 Dec 2015 00:37:56 +0000 (16:37 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 10 Dec 2015 06:00:19 +0000 (22:00 -0800)
commit9c0b55d926e51ef0146122cde888dfeaef38ccdb
tree577bfad143f169d0c88cf1298a9ea9fe26936685
parent90058e5ce76b8d33c943c4edb39c6642c3908678
Make getLagFromPtHeartbeat() always use the LB cluster master entry

Before, it just used the immediate master entry, which could be another
slave. In that case, it may not even exists at all.

Bug: T119648
Change-Id: Iea970b81ad2c9855aafcccf0bb0662fc0b3a8d4d
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
includes/db/loadbalancer/LoadBalancer.php
tests/phpunit/includes/db/DatabaseMysqlBaseTest.php
tests/phpunit/includes/db/LBFactoryTest.php