jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/374674 )
Change subject: DB_SLAVE -> DB_REPLICA
......................................................................
DB_SLAVE -> DB_REPLICA
Change-Id: Id47c23acf22af03964a6899e00a46ebf2088ab8a
---
M includes/LoginNotify.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/LoginNotify.php b/includes/LoginNotify.php
index 828f25f..386e356 100644
--- a/includes/LoginNotify.php
+++ b/includes/LoginNotify.php
@@ -233,7 +233,7 @@
return self::USER_NOT_KNOWN;
}
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_REPLICA );
$result = $this->checkUserOneWiki( $user->getId(), $subnet,
$dbr );
if ( $result === self::USER_KNOWN ) {
return $result;
@@ -276,7 +276,7 @@
$lb = MediaWikiServices::getInstance()
->getDBLoadBalancerFactory()
->getMainLB( $wiki );
- $dbrLocal = $lb->getConnection(
DB_SLAVE, [], $wiki );
+ $dbrLocal = $lb->getConnection(
DB_REPLICA, [], $wiki );
if ( !$this->hasCheckUserTables(
$dbrLocal ) ) {
// Skip this wiki, no checkuser
table.
--
To view, visit https://gerrit.wikimedia.org/r/374674
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id47c23acf22af03964a6899e00a46ebf2088ab8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LoginNotify
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Niharika29 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits