From: Aaron Schulz Date: Wed, 8 Apr 2015 16:24:36 +0000 (-0700) Subject: Use wfWaitForSlaves in upload stash cleanup script X-Git-Tag: 1.31.0-rc.0~11781^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=3ca6f36c9025f27f823d86f00f448c86c27f96ac;p=lhc%2Fweb%2Fwiklou.git Use wfWaitForSlaves in upload stash cleanup script Bug: T95382 Change-Id: I8d93eb15064693634076e864ed6724392448cb45 --- diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 24b63a8bab..70490e1b68 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -87,6 +87,7 @@ class UploadStashCleanup extends Maintenance { $this->output( "Failed removing stashed upload with key: $key ($type)\n" ); } if ( $i % 100 == 0 ) { + wfWaitForSlaves(); $this->output( "$i\n" ); } }