diff options
author | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2024-01-22 22:27:45 +0100 |
---|---|---|
committer | Bartosz Dziewoński <dziewonski@fastmail.fm> | 2024-01-22 22:27:45 +0100 |
commit | e4c7272976efb123919fcc96534446bfa1edb18c (patch) | |
tree | 952b8c11c72f0d6c4d9147796ca8a029abcde597 /includes/title/Title.php | |
parent | 16c86f87f96c032bbecad7162d5d779df7060af1 (diff) | |
download | mediawikicore-e4c7272976efb123919fcc96534446bfa1edb18c.tar.gz mediawikicore-e4c7272976efb123919fcc96534446bfa1edb18c.zip |
Change uses of getDBLoadBalancerFactory() to getConnectionProvider()
Update cases where one of the IConnectionProvider methods is called
immediately.
This doesn't really change anything, but I hope it helps promote
getConnectionProvider() as the common way to do this.
Follow-up to 8604c384f624273f46b653ec252ffaed30e6ff89.
Change-Id: Id0e7d02bab0c570343c2b1f03c70b44ee39db112
Diffstat (limited to 'includes/title/Title.php')
-rw-r--r-- | includes/title/Title.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/title/Title.php b/includes/title/Title.php index 0466d54e8e7b..93921e2d28f0 100644 --- a/includes/title/Title.php +++ b/includes/title/Title.php @@ -2418,7 +2418,7 @@ class Title implements LinkTarget, PageIdentity, IDBAccessObject { } DeferredUpdates::addUpdate( new AtomicSectionUpdate( - MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->getPrimaryDatabase(), + MediaWikiServices::getInstance()->getConnectionProvider()->getPrimaryDatabase(), __METHOD__, static function ( IDatabase $dbw, $fname ) { $config = MediaWikiServices::getInstance()->getMainConfig(); @@ -2438,7 +2438,7 @@ class Title implements LinkTarget, PageIdentity, IDBAccessObject { ) ); DeferredUpdates::addUpdate( new AtomicSectionUpdate( - MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->getPrimaryDatabase(), + MediaWikiServices::getInstance()->getConnectionProvider()->getPrimaryDatabase(), __METHOD__, static function ( IDatabase $dbw, $fname ) { $dbw->newDeleteQueryBuilder() |