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
Bump minimum required MySQL Version to 5.5.8
[lhc/web/wiklou.git]
/
includes
/
poolcounter
/
PoolCounterWork.php
diff --git
a/includes/poolcounter/PoolCounterWork.php
b/includes/poolcounter/PoolCounterWork.php
index
c0be7a1
..
a570d78
100644
(file)
--- a/
includes/poolcounter/PoolCounterWork.php
+++ b/
includes/poolcounter/PoolCounterWork.php
@@
-31,7
+31,7
@@
abstract class PoolCounterWork {
protected $cacheable = false; // does this override getCachedWork() ?
/**
protected $cacheable = false; // does this override getCachedWork() ?
/**
- * @param string $type The
type of PoolCounter to use
+ * @param string $type The
class of actions to limit concurrency for (task type)
* @param string $key Key that identifies the queue this work is placed on
*/
public function __construct( $type, $key ) {
* @param string $key Key that identifies the queue this work is placed on
*/
public function __construct( $type, $key ) {
@@
-146,9
+146,9
@@
abstract class PoolCounterWork {
/* These two cases should never be hit... */
case PoolCounter::ERROR:
default:
/* These two cases should never be hit... */
case PoolCounter::ERROR:
default:
- $errors =
array(
+ $errors =
[
PoolCounter::QUEUE_FULL => 'pool-queuefull',
PoolCounter::QUEUE_FULL => 'pool-queuefull',
- PoolCounter::TIMEOUT => 'pool-timeout'
)
;
+ PoolCounter::TIMEOUT => 'pool-timeout'
]
;
$status = Status::newFatal( isset( $errors[$status->value] )
? $errors[$status->value]
$status = Status::newFatal( isset( $errors[$status->value] )
? $errors[$status->value]