Index: trunk/phase3/maintenance/moveBatch.php |
— | — | @@ -43,6 +43,7 @@ |
44 | 44 | $file = fopen( $filename, 'r' ); |
45 | 45 | if ( !$file ) { |
46 | 46 | print "Unable to read file, exiting\n"; |
| 47 | + exit; |
47 | 48 | } |
48 | 49 | |
49 | 50 | $dbw =& wfGetDB( DB_MASTER ); |
— | — | @@ -65,14 +66,16 @@ |
66 | 67 | } |
67 | 68 | |
68 | 69 | |
| 70 | + print $source->getPrefixedText(); |
69 | 71 | $dbw->begin(); |
70 | 72 | $source->moveTo( $dest, false, $reason ); |
71 | 73 | $dbw->immediateCommit(); |
| 74 | + print "\n"; |
72 | 75 | |
73 | | - wfWaitForSlaves( 5 ); |
74 | 76 | if ( $interval ) { |
75 | 77 | sleep( $interval ); |
76 | 78 | } |
| 79 | + wfWaitForSlaves( 5 ); |
77 | 80 | } |
78 | 81 | |
79 | 82 | |