dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f1d4df
)
Lowered $maxAllowedLag to 3 in JobRunner
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 22 Apr 2015 13:11:25 +0000
(06:11 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 22 Apr 2015 13:11:25 +0000
(06:11 -0700)
Change-Id: I7cb771c667bac21e9b67069e31c6243d9314dac5
includes/jobqueue/JobRunner.php
patch
|
blob
|
history
diff --git
a/includes/jobqueue/JobRunner.php
b/includes/jobqueue/JobRunner.php
index
d5262a1
..
85f9c2c
100644
(file)
--- 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 ) = wfGetLB
Factory()->getMainLB
( wfWikiID() )->getMaxLag();
+ $maxAllowedLag =
3
;
+ list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag();
if ( $maxLag >= $maxAllowedLag ) {
$response['reached'] = 'slave-lag-limit';
return $response;