http://www.mediawiki.org/wiki/Special:Code/MediaWiki/71203

Revision: 71203
Author:   maxsem
Date:     2010-08-17 14:17:13 +0000 (Tue, 17 Aug 2010)

Log Message:
-----------
Use the same connection for updates everywhere. Hopefully, this ugly code will 
not survive for long anyway

Modified Paths:
--------------
    trunk/phase3/maintenance/updaters.inc

Modified: trunk/phase3/maintenance/updaters.inc
===================================================================
--- trunk/phase3/maintenance/updaters.inc       2010-08-17 13:36:59 UTC (rev 
71202)
+++ trunk/phase3/maintenance/updaters.inc       2010-08-17 14:17:13 UTC (rev 
71203)
@@ -33,8 +33,8 @@
 # Obviously, only use this for updates that occur after the updatelog table was
 # created!
 function update_row_exists( $key ) {
-       $dbr = wfGetDB( DB_SLAVE );
-       $row = $dbr->selectRow(
+       global $wgDatabase;
+       $row = $wgDatabase->selectRow(
                'updatelog',
                '1',
                array( 'ul_key' => $key ),



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

Reply via email to