dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove "@author Aaron Schulz" annotations"
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
JobQueue.php
diff --git
a/includes/jobqueue/JobQueue.php
b/includes/jobqueue/JobQueue.php
index
020a684
..
d20a233
100644
(file)
--- a/
includes/jobqueue/JobQueue.php
+++ b/
includes/jobqueue/JobQueue.php
@@
-19,8
+19,8
@@
*
* @file
* @defgroup JobQueue JobQueue
*
* @file
* @defgroup JobQueue JobQueue
- * @author Aaron Schulz
*/
*/
+use MediaWiki\MediaWikiServices;
/**
* Class to handle enqueueing and running of background jobs
/**
* Class to handle enqueueing and running of background jobs
@@
-709,7
+709,7
@@
abstract class JobQueue {
public static function incrStats( $key, $type, $delta = 1 ) {
static $stats;
if ( !$stats ) {
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 );
}
$stats->updateCount( "jobqueue.{$key}.all", $delta );
$stats->updateCount( "jobqueue.{$key}.{$type}", $delta );