Switch various LoadBalancer::getConnection() callers to getConnectionRef()
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 28 Jun 2019 16:40:05 +0000 (09:40 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Jul 2019 17:56:30 +0000 (10:56 -0700)
commitf72ae0f6e6ae71e12dd18e5c2d6e1712e5becfbd
treeeb3f7ba9ef36c82142e4ce2866a864d207654bc7
parent1cc50ab8f5f94c753781a875fa91e9fea7a9dcc9
Switch various LoadBalancer::getConnection() callers to getConnectionRef()

This is the preferred method as it enforces read-only mode for DB_REPLICA
and handles LoadBalancer::reuseConnection() calls automatically.

Change-Id: Iab9439ba8e0810fa14c302661ed7a3534f6bfc0d
15 files changed:
includes/SiteStats.php
includes/Storage/PageEditStash.php
includes/block/BlockRestrictionStore.php
includes/deferred/SiteStatsUpdate.php
includes/deferred/UserEditCountUpdate.php
includes/jobqueue/jobs/CategoryMembershipChangeJob.php
includes/jobqueue/jobs/ClearUserWatchlistJob.php
includes/jobqueue/jobs/ClearWatchlistNotificationsJob.php
includes/jobqueue/jobs/RefreshLinksJob.php
includes/page/WikiPage.php
includes/search/SearchOracle.php
includes/search/SearchSqlite.php
includes/site/DBSiteStore.php
includes/user/User.php
includes/user/UserGroupMembership.php