wiki.techinc.nl/tests/phpunit/includes/db
Aaron Schulz c1e1512698 rdbms: improve LoadBalancer connection pool reuse (ii)
Make DBConnRef enforce the DB domain selected during its lifetime
and allow more nested and successive use of the same connection handle
via DBConnRef. This can avoid extra connections in some cases where
getConnection()/getConnectionRef() is used.

Also:
* Reduce the number of connection pools arrays from six to two
* Merge getLocalConnection()/getForeignConnection() into one method
* Expand various related code comments

Since LoadBalancer::getReadOnlyReason() no longer user the local domain
but rather DOMAIN_ANY, it should not result in "USE" errors if the local
domain does not have a database on the server.

This version of the patch removes the unused reuseConnectionInternal()
method (the method was previously added back to the patch by mistake).

Bug: T226595
Change-Id: I62502f4de4f86a54f25be1699c4d1a1c1baee60b
2022-10-18 17:23:44 -07:00
..
DatabaseTestHelper.php rdbms: Introduce DatabaseFlagsHolder and move some internal logic there 2022-10-11 17:59:47 +02:00
LBFactoryTest.php rdbms: Instead of reconfiguring all of LB, just remove depooled db 2022-10-12 16:12:10 +02:00
LoadBalancerTest.php rdbms: improve LoadBalancer connection pool reuse (ii) 2022-10-18 17:23:44 -07:00