From 7c5a5aee0eb98f97a3933e4b77cc53dff81a1f61 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 9 May 2012 03:38:21 +0100 Subject: [PATCH] Added some more output to cleanupUploadStash.php Change-Id: I8acf22df78a97c6e4003e7e5ed89800f1be41c6a --- maintenance/cleanupUploadStash.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"; -- 2.20.1