Legoktm has uploaded a new change for review.

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

Change subject: Use LoadBalancer::getConnectionRef() so that reuseConnection() 
gets called
......................................................................

Use LoadBalancer::getConnectionRef() so that reuseConnection() gets called

Change-Id: I7dfe9aa144e91d9ea428f618e5f1def7f24f5cc9
---
M ResourceLoaderGlobalModule.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalCssJs 
refs/changes/63/170763/1

diff --git a/ResourceLoaderGlobalModule.php b/ResourceLoaderGlobalModule.php
index ae22fec..daedaca 100644
--- a/ResourceLoaderGlobalModule.php
+++ b/ResourceLoaderGlobalModule.php
@@ -53,13 +53,13 @@
        }
 
        /**
-        * @return DatabaseBase
+        * @return IDatabase
         */
        protected function getDB() {
                if ( $this->wiki === wfWikiID() ) {
                        return wfGetDB( DB_SLAVE );
                } else {
-                       return wfGetDB( DB_SLAVE, array(), $this->wiki );
+                       return wfGetLB( $this->wiki )->getConnectionRef( 
DB_SLAVE, array(), $this->wiki );
                }
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7dfe9aa144e91d9ea428f618e5f1def7f24f5cc9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalCssJs
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to