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
Deprecate $wgContentHandlerUseDB
[lhc/web/wiklou.git]
/
includes
/
poolcounter
/
PoolCounterWork.php
diff --git
a/includes/poolcounter/PoolCounterWork.php
b/includes/poolcounter/PoolCounterWork.php
index
a570d78
..
7379679
100644
(file)
--- a/
includes/poolcounter/PoolCounterWork.php
+++ b/
includes/poolcounter/PoolCounterWork.php
@@
-29,6
+29,8
@@
abstract class PoolCounterWork {
protected $type = 'generic';
/** @var bool */
protected $cacheable = false; // does this override getCachedWork() ?
protected $type = 'generic';
/** @var bool */
protected $cacheable = false; // does this override getCachedWork() ?
+ /** @var PoolCounter */
+ private $poolCounter;
/**
* @param string $type The class of actions to limit concurrency for (task type)
/**
* @param string $type The class of actions to limit concurrency for (task type)
@@
-150,9
+152,7
@@
abstract class PoolCounterWork {
PoolCounter::QUEUE_FULL => 'pool-queuefull',
PoolCounter::TIMEOUT => 'pool-timeout' ];
PoolCounter::QUEUE_FULL => 'pool-queuefull',
PoolCounter::TIMEOUT => 'pool-timeout' ];
- $status = Status::newFatal( isset( $errors[$status->value] )
- ? $errors[$status->value]
- : 'pool-errorunknown' );
+ $status = Status::newFatal( $errors[$status->value] ?? 'pool-errorunknown' );
$this->logError( $status );
return $this->error( $status );
}
$this->logError( $status );
return $this->error( $status );
}