(bug 41457) PHP Fatal error: Cannot break/continue 2 levels in maintenance/runJobs.php on line 94

Change-Id: Ic53227596a0acdc92bc9925a260b7f029e67da03
This commit is contained in:
Reedy 2012-10-27 21:34:34 +01:00
parent 65bc8e5ced
commit 54357fe871

View file

@ -91,10 +91,10 @@ class RunJobs extends Maintenance {
}
// Break out if we hit the job count or wall time limits...
if ( $maxJobs && ++$n >= $maxJobs ) {
break 2;
break;
}
if ( $maxTime && ( time() - $startTime ) > $maxTime ) {
break 2;
break;
}
// Don't let any slaves/backups fall behind...
$group->get( $type )->waitForBackups();