Change-Id: I9bb9948190d349d563f65d3e15bf1c6fa0d8adec
$trxProfiler->setLogger( LoggerFactory::getInstance( 'DBPerformance' ) );
$trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ );
$trxProfiler->setLogger( LoggerFactory::getInstance( 'DBPerformance' ) );
$trxProfiler->setExpectation( 'maxAffected', 500, __METHOD__ );
- // Bail out if there is too much DB lag
+ // Bail out if there is too much DB lag.
+ // This check should not block as we want to try other wiki queues.
$maxAllowedLag = 3;
list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag();
if ( $maxLag >= $maxAllowedLag ) {
$maxAllowedLag = 3;
list( , $maxLag ) = wfGetLB( wfWikiID() )->getMaxLag();
if ( $maxLag >= $maxAllowedLag ) {