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 "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
loadmonitor
/
LoadMonitorMySQL.php
diff --git
a/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php
b/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php
index
c0db68c
..
f8ad329
100644
(file)
--- a/
includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php
+++ b/
includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php
@@
-21,8
+21,8
@@
namespace Wikimedia\Rdbms;
namespace Wikimedia\Rdbms;
-use IDatabase;
use BagOStuff;
use BagOStuff;
+use WANObjectCache;
/**
* Basic MySQL load monitor with no external dependencies
/**
* Basic MySQL load monitor with no external dependencies
@@
-35,9
+35,9
@@
class LoadMonitorMySQL extends LoadMonitor {
private $warmCacheRatio;
public function __construct(
private $warmCacheRatio;
public function __construct(
- ILoadBalancer $lb, BagOStuff $srvCache,
BagOStuff $c
ache, array $options = []
+ ILoadBalancer $lb, BagOStuff $srvCache,
WANObjectCache $wC
ache, array $options = []
) {
) {
- parent::__construct( $lb, $srvCache, $
c
ache, $options );
+ parent::__construct( $lb, $srvCache, $
wC
ache, $options );
$this->warmCacheRatio = isset( $options['warmCacheRatio'] )
? $options['warmCacheRatio']
$this->warmCacheRatio = isset( $options['warmCacheRatio'] )
? $options['warmCacheRatio']