r113929 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113928‎ | r113929 | r113930 >
Date:16:12, 15 March 2012
Author:reedy
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/WikimediaMaintenance (modified) (history)
  • /branches/wmf/1.19wmf1/extensions/WikimediaMaintenance/cleanupBug31576.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/WikimediaMaintenance/cleanupBug31576.php
@@ -2,6 +2,11 @@
33 require_once( dirname( __FILE__ ) . '/WikimediaMaintenance.php' );
44
55 class CleanupBug31576 extends WikimediaMaintenance {
 6+
 7+ protected $batchsize;
 8+
 9+ protected $processed = array();
 10+
611 public function __construct() {
712 parent::__construct();
813 $this->mDescription = "Cleans up templatelinks corruption caused by https://bugzilla.wikimedia.org/show_bug.cgi?id=31576";
@@ -38,15 +43,14 @@
3944 break;
4045 }
4146
42 - $processed = array();
4347 foreach ( $res as $row ) {
4448 $vCount++;
45 - if ( isset( $processed[$row->tl_from] ) ) {
 49+ if ( isset( $this->processed[$row->tl_from] ) ) {
4650 // We've already processed this page, skip it
4751 continue;
4852 }
4953 RefreshLinks::fixLinksFromArticle( $row->tl_from );
50 - $processed[$row->tl_from] = true;
 54+ $this->processed[$row->tl_from] = true;
5155 $pCount++;
5256 }
5357 $this->output( "{$pCount}/{$vCount} pages processed\n" );
Property changes on: branches/wmf/1.19wmf1/extensions/WikimediaMaintenance
___________________________________________________________________
Modified: svn:mergeinfo
5458 Merged /trunk/extensions/WikimediaMaintenance:r113928

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113928Followup r104758...reedy16:09, 15 March 2012

Status & tagging log