jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/353825 )
Change subject: Avoid master queries in SpecialGlobalRenameProgress
......................................................................
Avoid master queries in SpecialGlobalRenameProgress
Bug: T92357
Change-Id: I11be38993c849fb7737508d5383d135904347812
---
M includes/CentralAuthUtils.php
M includes/specials/SpecialGlobalRenameProgress.php
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/CentralAuthUtils.php b/includes/CentralAuthUtils.php
index d649afc..b04f0e9 100644
--- a/includes/CentralAuthUtils.php
+++ b/includes/CentralAuthUtils.php
@@ -39,7 +39,7 @@
/**
* Gets a master (read/write) database connection to the CentralAuth
database
*
- * @return IDatabase
+ * @return \Wikimedia\Rdbms\IDatabase
* @throws CentralAuthReadOnlyError
*/
public static function getCentralDB() {
@@ -56,7 +56,7 @@
/**
* Gets a slave (readonly) database connection to the CentralAuth
database
*
- * @return IDatabase
+ * @return \Wikimedia\Rdbms\IDatabase
*/
public static function getCentralSlaveDB() {
global $wgCentralAuthDatabase;
diff --git a/includes/specials/SpecialGlobalRenameProgress.php
b/includes/specials/SpecialGlobalRenameProgress.php
index e35d93e..15f6aaf 100644
--- a/includes/specials/SpecialGlobalRenameProgress.php
+++ b/includes/specials/SpecialGlobalRenameProgress.php
@@ -124,7 +124,7 @@
$this->getForm()->prepareForm()->displayForm( false );
// $newname will always be defined since we check
// for 0 result rows above
- $caUser = CentralAuthUser::getMasterInstanceByName( $newName );
+ $caUser = CentralAuthUser::getInstanceByName( $newName );
$attached = $caUser->listAttached();
foreach ( $attached as $wiki ) {
// If it's not in the db table, and there is
--
To view, visit https://gerrit.wikimedia.org/r/353825
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I11be38993c849fb7737508d5383d135904347812
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits