r84427 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84426‎ | r84427 | r84428 >
Date:21:55, 20 March 2011
Author:aaron
Status:ok
Tags:
Comment:
Ugly bug 24375 hack
Modified paths:
  • /trunk/phase3/maintenance/importDump.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/importDump.php
@@ -148,12 +148,15 @@
149149 $revrate = '-';
150150 }
151151 # Logs dumps don't have page tallies
152 - if ( $this->pageCount )
 152+ if ( $this->pageCount ) {
153153 $this->progress( "$this->pageCount ($rate pages/sec $revrate revs/sec)" );
154 - else
 154+ } else {
155155 $this->progress( "$this->revCount ($revrate revs/sec)" );
 156+ }
156157 }
157158 wfWaitForSlaves( 5 );
 159+ // XXX: Don't let deferred jobs array get absurdly large (bug 24375)
 160+ wfDoUpdates( 'commit' );
158161 }
159162
160163 function progress( $string ) {

Status & tagging log