Added another size limit check to Job::toString
[lhc/web/wiklou.git] / includes / jobqueue / JobRunner.php
index e38aa5f..4d2c618 100644 (file)
@@ -77,8 +77,7 @@ class JobRunner {
                }
 
                // Bail out if there is too much DB lag
-               // @note: getLagTimes() has better caching than getMaxLag()
-               $maxLag = max( wfGetLBFactory()->getMainLB( wfWikiID() )->getLagTimes() );
+               list( , $maxLag ) = wfGetLBFactory()->getMainLB( wfWikiID() )->getMaxLag();
                if ( $maxLag >= 5 ) {
                        $response['reached'] = 'slave-lag-limit';
                        return $response;