Add sanity check to LoadBalancer::setDomainPrefix()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 08:33:29 +0000 (01:33 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 21 Sep 2016 16:04:37 +0000 (09:04 -0700)
commitc36ef27c53f00408430c637cfcdfa892b7f34f2c
tree242d7e198dd453c289d796a77964f441b1b003c0
parent29d7ab8eeb218a5b0bab5f6492a3e01beec7b4dc
Add sanity check to LoadBalancer::setDomainPrefix()

Fixed some errors that popped up in CI:
* Also cleanup $domain handling in reuseConnection().
* Fix empty string handling in openForeignConnection() where
  the empty string check against $dbName failed since an empty
  string $domain results in $dbName being null.

Change-Id: Ie78fefa1acb401fe4e8bdc96b75053692aa0a925
includes/libs/rdbms/loadbalancer/LoadBalancer.php
tests/phpunit/includes/db/LBFactoryTest.php