Fix wfWaitForSlaves() for foreign DBs
authorCatrope <roan.kattouw@gmail.com>
Thu, 21 Mar 2013 00:43:44 +0000 (17:43 -0700)
committerCatrope <roan.kattouw@gmail.com>
Thu, 21 Mar 2013 00:43:44 +0000 (17:43 -0700)
commit319ace81250b97dff0e6ee6df4b1f570f468bf5c
tree76b8e3c8cdd859f90fa2aec65a54b75a5a7daf0c
parent2772d8c1a6250507e699930fc8e030e58d345e23
Fix wfWaitForSlaves() for foreign DBs

We thought we'd fixed it previously, but the LB now connects to the
foreign slaves and tries to select $wgDBname. Fixing this by having
doWait() open connections that don't select any DB name, by passing
the empty string as the DB name. This is an undocumented feature
in the DatabaseMysql constructor, apparently.

Change-Id: Icc5594143a3eaa31170a7fc8c93d429c1a7dd575
includes/db/LoadBalancer.php