r10815 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10814‎ | r10815 | r10816 >
Date:00:04, 28 August 2005
Author:timstarling
Status:old
Tags:
Comment:
minor improvements
Modified paths:
  • /trunk/phase3/maintenance/moveBatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/moveBatch.php
@@ -43,6 +43,7 @@
4444 $file = fopen( $filename, 'r' );
4545 if ( !$file ) {
4646 print "Unable to read file, exiting\n";
 47+ exit;
4748 }
4849
4950 $dbw =& wfGetDB( DB_MASTER );
@@ -65,14 +66,16 @@
6667 }
6768
6869
 70+ print $source->getPrefixedText();
6971 $dbw->begin();
7072 $source->moveTo( $dest, false, $reason );
7173 $dbw->immediateCommit();
 74+ print "\n";
7275
73 - wfWaitForSlaves( 5 );
7476 if ( $interval ) {
7577 sleep( $interval );
7678 }
 79+ wfWaitForSlaves( 5 );
7780 }
7881
7982

Status & tagging log