rdbms: ignore inactive mysql GTIDs in replication position methods
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Apr 2018 00:36:22 +0000 (17:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 5 Apr 2018 04:58:03 +0000 (21:58 -0700)
commit315ffb840bf134e66d64998f3e5f88ac86c8ab26
tree107f06d504c64e80d91a8d61ee7c005e7b5453b7
parent8d68145a16c3bdf1c42dec80b4294592bfd09af0
rdbms: ignore inactive mysql GTIDs in replication position methods

If it is known that master writes will use GTIDs with a certain
domain and server ID, ignore other ones on masterPosWait().

This restores ceb7d61ee except it uses the same server variables
and MySQLMasterPos preserves the active server/domain information
across serialization.

Change-Id: I1a4f143adcbec642966d7d1a55edb0f414a7f0c4
includes/libs/rdbms/database/DatabaseMysqlBase.php
includes/libs/rdbms/database/position/MySQLMasterPos.php
tests/phpunit/includes/libs/rdbms/database/DatabaseMysqlBaseTest.php