(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:
parent
65bc8e5ced
commit
54357fe871
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue