dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Revert "Preprocessor: Don't allow unclosed extension tags (matching until...
[lhc/web/wiklou.git]
/
maintenance
/
cleanupUploadStash.php
diff --git
a/maintenance/cleanupUploadStash.php
b/maintenance/cleanupUploadStash.php
index
24b63a8
..
480059d
100644
(file)
--- a/
maintenance/cleanupUploadStash.php
+++ b/
maintenance/cleanupUploadStash.php
@@
-37,7
+37,7
@@
class UploadStashCleanup extends Maintenance {
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
- $this->
mDescription = "Clean up abandoned files in temporary uploaded file stash"
;
+ $this->
addDescription( 'Clean up abandoned files in temporary uploaded file stash' )
;
$this->setBatchSize( 50 );
}
$this->setBatchSize( 50 );
}
@@
-87,6
+87,7
@@
class UploadStashCleanup extends Maintenance {
$this->output( "Failed removing stashed upload with key: $key ($type)\n" );
}
if ( $i % 100 == 0 ) {
$this->output( "Failed removing stashed upload with key: $key ($type)\n" );
}
if ( $i % 100 == 0 ) {
+ wfWaitForSlaves();
$this->output( "$i\n" );
}
}
$this->output( "$i\n" );
}
}