From: Reedy Date: Wed, 9 May 2012 02:38:21 +0000 (+0100) Subject: Added some more output to cleanupUploadStash.php X-Git-Tag: 1.31.0-rc.0~23642^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=7c5a5aee0eb98f97a3933e4b77cc53dff81a1f61;p=lhc%2Fweb%2Fwiklou.git Added some more output to cleanupUploadStash.php Change-Id: I8acf22df78a97c6e4003e7e5ed89800f1be41c6a --- diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 5f57ffdffb..c8d8924785 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -68,15 +68,21 @@ class UploadStashCleanup extends Maintenance { // out-of-date someday $stash = new UploadStash( $repo ); + $i = 0; foreach( $keys as $key ) { + $i++; try { $stash->getFile( $key, true ); $stash->removeFileNoAuth( $key ); } catch ( UploadStashBadPathException $ex ) { $this->output( "Failed removing stashed upload with key: $key\n" ); } + if ( $i % 100 == 0 ) { + $this->output( "$i\n" ); + } } - } + $this->output( "$i done\n" ); + } } $maintClass = "UploadStashCleanup";