Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312465

Change subject: Use openConnection() instead of making a new LoadBalancer
......................................................................

Use openConnection() instead of making a new LoadBalancer

Change-Id: I18422f7283a9737fee903f0c25cba24b7abaad9e
---
M SpecialOpenID.body.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OpenID 
refs/changes/65/312465/1

diff --git a/SpecialOpenID.body.php b/SpecialOpenID.body.php
index fb4d40c..5e81d59 100644
--- a/SpecialOpenID.body.php
+++ b/SpecialOpenID.body.php
@@ -58,8 +58,8 @@
                                require_once( 'Auth/OpenID/SQLiteStore.php' );
                                return new Auth_OpenID_SQLiteStore( $db );
                        } else {
-                               $lb = wfGetLBFactory()->newMainLB();
-                               $db = new MediaWikiOpenIDDatabaseConnection( 
$lb->getConnection( DB_MASTER ) );
+                               $lb = wfGetLBFactory()->getMainLB();
+                               $db = new MediaWikiOpenIDDatabaseConnection( 
$lb->openConnection( DB_MASTER ) );
 
                                switch( $wgDBtype ) {
                                case 'mysql':

-- 
To view, visit https://gerrit.wikimedia.org/r/312465
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I18422f7283a9737fee903f0c25cba24b7abaad9e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OpenID
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to