http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70012
Revision: 70012
Author: platonides
Date: 2010-07-27 13:19:16 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
There's no longer a $wgLoadBalancer global. Replace with wfGetLB().
At least the isset() ensured do_templatelinks_update() didn't die.
Modified Paths:
--------------
trunk/phase3/maintenance/updaters.inc
Modified: trunk/phase3/maintenance/updaters.inc
===================================================================
--- trunk/phase3/maintenance/updaters.inc 2010-07-27 13:07:24 UTC (rev
70011)
+++ trunk/phase3/maintenance/updaters.inc 2010-07-27 13:19:16 UTC (rev
70012)
@@ -760,7 +760,7 @@
}
function do_templatelinks_update() {
- global $wgDatabase, $wgLoadBalancer;
+ global $wgDatabase;
$fname = 'do_templatelinks_update';
if ( $wgDatabase->tableExists( 'templatelinks' ) ) {
@@ -770,7 +770,7 @@
wfOut( "Creating templatelinks table...\n" );
$wgDatabase->sourceFile( archive( 'patch-templatelinks.sql' ) );
wfOut( "Populating...\n" );
- if ( isset( $wgLoadBalancer ) && $wgLoadBalancer->getServerCount() > 1
) {
+ if ( wfGetLB()->getServerCount() > 1 ) {
// Slow, replication-friendly update
$res = $wgDatabase->select( 'pagelinks', array( 'pl_from',
'pl_namespace', 'pl_title' ),
array( 'pl_namespace' => NS_TEMPLATE ), $fname );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs