Fixes to masterPosWait() for master switchovers
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 17 Feb 2016 22:31:31 +0000 (14:31 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 8 Mar 2016 11:37:44 +0000 (03:37 -0800)
commitb64a178a2178f6393504fd0a589f4152158d9dac
treefd2af1a120a08a9b141110028a07820cb65469e6
parent11521b6f7d992029f890badcf7f30997cde09a75
Fixes to masterPosWait() for master switchovers

* Clean up return value types and docs.
* Handle master switch-over better w.r.t the job queue due
  to binlog name changes (the host portion). Previously the method
  would fail and trigger read-only mode when waiting on former
  master positions. Assume the the switch-over was done properly
  and thus return immediately.

Bug: T126436
Change-Id: Ib8c05a5c72d03a5c98e41b23c5653fc194b6d130
includes/db/DatabaseMysqlBase.php
includes/db/DatabaseUtility.php
includes/db/IDatabase.php
tests/phpunit/includes/db/DatabaseMysqlBaseTest.php