rdbms: avoid "SHOW MASTER/SLAVE STATUS" queries in the GTID case
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 7 Feb 2018 09:39:24 +0000 (01:39 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 8 Feb 2018 17:26:48 +0000 (09:26 -0800)
commita114bd9f4d9da42613051d0180885022313fb300
tree6f244bf12453b1ee594fea55e8a42956c96a2b36
parentc619ffe30a043601dbc06c79b5704294fed4a46e
rdbms: avoid "SHOW MASTER/SLAVE STATUS" queries in the GTID case

The binlog file/pos where only being used in __toString() for the GTID
case. Make that method use the GTID set instead and avoid querying the
old-fashioned binlog fields all together in that case. The STATUS
queries involve some global lock contention.

Bug: T180918
Change-Id: I18123a702e4f554b87bf5f90017b248062e73049
includes/libs/rdbms/database/DatabaseMysqlBase.php
includes/libs/rdbms/database/position/MySQLMasterPos.php
tests/phpunit/includes/db/LBFactoryTest.php
tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php