r80903 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80902‎ | r80903 | r80904 >
Date:20:04, 24 January 2011
Author:catrope
Status:ok
Tags:
Comment:
1.16wmf4: Commit local change to refreshCategoryCounts.php making it more verbose (smaller reporting interval, display of wiki ID)
Modified paths:
  • /branches/wmf/1.16wmf4/maintenance/refreshCategoryCounts.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/maintenance/refreshCategoryCounts.php
@@ -22,7 +22,7 @@
2323 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
2424
2525 class RefreshCategoryCounts extends Maintenance {
26 - const REPORTING_INTERVAL = 1000;
 26+ const REPORTING_INTERVAL = 100;
2727
2828 public function __construct() {
2929 $this->mDescription = 'Refreshes category counts';
@@ -46,6 +46,7 @@
4747 $maxlag = intval( $maxlag );
4848 $throttle = intval( $throttle );
4949 $id = $start;
 50+ $wiki = $dbw->getWikiID();
5051
5152 $i = 0;
5253 while ( true ) {
@@ -74,7 +75,7 @@
7576
7677 $i++;
7778 if ( !( $i % self::REPORTING_INTERVAL ) ) {
78 - $this->output( "$id\n" );
 79+ $this->output( "$wiki: $id\n" );
7980 wfWaitForSlaves( $maxlag );
8081 }
8182 usleep( $throttle * 1000 );

Status & tagging log