X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjobqueue%2FJobQueue.php;h=d20a233ee2ddb7fa203d5fbf57b8b1c69cab969b;hb=82e2c924e473fa3b99bb8e0da71d99b70ec5ca07;hp=d64be3c409cdb6eb0352a9215b1ca8be2d658267;hpb=816e6ded007382f35df38ea8f4b5a32e8e256b78;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/jobqueue/JobQueue.php b/includes/jobqueue/JobQueue.php index d64be3c409..d20a233ee2 100644 --- a/includes/jobqueue/JobQueue.php +++ b/includes/jobqueue/JobQueue.php @@ -19,8 +19,8 @@ * * @file * @defgroup JobQueue JobQueue - * @author Aaron Schulz */ +use MediaWiki\MediaWikiServices; /** * Class to handle enqueueing and running of background jobs @@ -553,7 +553,7 @@ abstract class JobQueue { } /** - * Wait for any slaves or backup servers to catch up. + * Wait for any replica DBs or backup servers to catch up. * * This does nothing for certain queue classes. * @@ -709,7 +709,7 @@ abstract class JobQueue { public static function incrStats( $key, $type, $delta = 1 ) { static $stats; if ( !$stats ) { - $stats = RequestContext::getMain()->getStats(); + $stats = MediaWikiServices::getInstance()->getStatsdDataFactory(); } $stats->updateCount( "jobqueue.{$key}.all", $delta ); $stats->updateCount( "jobqueue.{$key}.{$type}", $delta );