dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1247a9d
)
Merge "Catch and deal with UploadStashZeroLengthFileException when removing stashed...
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 27 Sep 2012 20:18:15 +0000
(20:18 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 27 Sep 2012 20:18:15 +0000
(20:18 +0000)
maintenance/cleanupUploadStash.php
patch
|
blob
|
history
diff --git
a/maintenance/cleanupUploadStash.php
b/maintenance/cleanupUploadStash.php
index
99985b5
..
6afe9e1
100644
(file)
--- a/
maintenance/cleanupUploadStash.php
+++ b/
maintenance/cleanupUploadStash.php
@@
-84,6
+84,8
@@
class UploadStashCleanup extends Maintenance {
$stash->removeFileNoAuth( $key );
} catch ( UploadStashBadPathException $ex ) {
$this->output( "Failed removing stashed upload with key: $key\n" );
+ } catch ( UploadStashZeroLengthFileException $ex ) {
+ $this->output( "Failed removing stashed upload with key: $key\n" );
}
if ( $i % 100 == 0 ) {
$this->output( "$i\n" );