From 05a5ec406dcd8686666294a5530bc4d3966afbcc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 22 Apr 2015 06:11:25 -0700 Subject: [PATCH] Lowered $maxAllowedLag to 3 in JobRunner Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5 --- includes/jobqueue/JobRunner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index d5262a1175..85f9c2c656 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -123,8 +123,8 @@ class JobRunner implements LoggerAwareInterface { $trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ ); // Bail out if there is too much DB lag - $maxAllowedLag = 5; - list( , $maxLag ) = wfGetLBFactory()->getMainLB( wfWikiID() )->getMaxLag(); + $maxAllowedLag = 3; + list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag(); if ( $maxLag >= $maxAllowedLag ) { $response['reached'] = 'slave-lag-limit'; return $response; -- 2.20.1