Merge "Use wfWaitForSlaves in upload stash cleanup script"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 8 Apr 2015 19:20:21 +0000 (19:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 8 Apr 2015 19:20:21 +0000 (19:20 +0000)
maintenance/cleanupUploadStash.php

index 24b63a8..70490e1 100644 (file)
@@ -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" );
                                }
                        }