Make NameTableStore use LoadBalancer::getConnectionRef()
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 4 Aug 2019 03:38:54 +0000 (23:38 -0400)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 25 Aug 2019 01:24:16 +0000 (01:24 +0000)
commitb1b01d8e3c490da04c4d0f2aac6e11414e21b6b6
tree437aed686222963e7dccabb04595c99c5cdba6b4
parentb7b9cea32981e9bc1425b771b910b7f2ba1d0bde
Make NameTableStore use LoadBalancer::getConnectionRef()

This method handles reuseConnection() calls, disallows writes to
DB_REPLICA role handles, is more consistent with wfGetDB(), and
is more efficient with I540b08920997c5.

Change-Id: I8edaef0ea4718414e2004fad04afca8ec5797669
includes/Storage/NameTableStore.php
tests/phpunit/includes/Storage/NameTableStoreTest.php