MaxSem has uploaded a new change for review. ( 
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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LoginNotify 
refs/changes/74/374674/1

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: newchange
Gerrit-Change-Id: Id47c23acf22af03964a6899e00a46ebf2088ab8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LoginNotify
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to