rdbms: set the schema in the LBFactory local domain
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 30 Jan 2018 03:09:07 +0000 (19:09 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 31 Jan 2018 16:53:29 +0000 (08:53 -0800)
commitd444b2c0b40087a87fb74914be89041b09d8593b
tree22a46fb4ddb8f63c3961e6a55ad2ddc206b013d5
parentba1da92650a9405df4459b21fd97c734496bec01
rdbms: set the schema in the LBFactory local domain

Also, enforce that new DB connection use the domain
schema as is the case with the DB name and table prefix.

The code worked previously since the local domain did not override
the schema in the server configuration arrays, so it happened not
to clobber the domain schema.

Lastly, fix unit test fatal in LBFactorySingle::forEachLB() when
called during LBFactorySingle::_destruct().

Change-Id: Ia9ddef0f21591d0c8b15f2947cd61569e3fec7a0
includes/db/MWLBFactory.php
includes/libs/rdbms/lbfactory/LBFactorySingle.php
includes/libs/rdbms/loadbalancer/LoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancerSingle.php