diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2022-01-24 23:29:01 -0800 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2022-01-27 01:02:44 +0000 |
commit | c433c15087c2c531199cdefce62637b78bb13820 (patch) | |
tree | 1083b3aef0e3aee9a1ad679db321e7ba8956cf5a /includes/Storage | |
parent | c471c03912efd3cb183e5bbff387a3c56501c2de (diff) | |
download | mediawikicore-c433c15087c2c531199cdefce62637b78bb13820.tar.gz mediawikicore-c433c15087c2c531199cdefce62637b78bb13820.zip |
Convert various callers to LoadBalancer::getConnectionRef()
Bug: T193565
Change-Id: I2e2ef6a1d841c632d1f3e53ca3f82a720af15d47
Diffstat (limited to 'includes/Storage')
-rw-r--r-- | includes/Storage/EditResultCache.php | 2 | ||||
-rw-r--r-- | includes/Storage/RevertedTagUpdate.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/Storage/EditResultCache.php b/includes/Storage/EditResultCache.php index 00fa53fc734b..2d94acdce484 100644 --- a/includes/Storage/EditResultCache.php +++ b/includes/Storage/EditResultCache.php @@ -106,7 +106,7 @@ class EditResultCache { // not found in stash, try change tags if ( !$result ) { - $dbr = $this->loadBalancer->getConnection( DB_REPLICA ); + $dbr = $this->loadBalancer->getConnectionRef( DB_REPLICA ); $result = $dbr->selectField( [ 'change_tag', 'change_tag_def' ], 'ct_params', diff --git a/includes/Storage/RevertedTagUpdate.php b/includes/Storage/RevertedTagUpdate.php index beca139f5c07..c372c4f7ab84 100644 --- a/includes/Storage/RevertedTagUpdate.php +++ b/includes/Storage/RevertedTagUpdate.php @@ -321,7 +321,7 @@ class RevertedTagUpdate implements DeferrableUpdate { */ protected function getChangeTags( int $revisionId ) { return ChangeTags::getTags( - $this->loadBalancer->getConnection( DB_REPLICA ), + $this->loadBalancer->getConnectionRef( DB_REPLICA ), null, $revisionId ); |