X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2Floadmonitor%2FLoadMonitorMySQL.php;h=738347249c0fcef0b748531608456816fb671280;hb=7049236d2804c52639abae01d266d3ecaaff480f;hp=dda980c11845621fe134154b73200b381f24f1bd;hpb=138298b397b308ad6e4bfc7088884d90e8ac1e37;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php b/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php index dda980c118..738347249c 100644 --- a/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php +++ b/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php @@ -44,6 +44,7 @@ class LoadMonitorMySQL extends LoadMonitor { protected function getWeightScale( $index, IDatabase $conn = null ) { if ( !$conn ) { + // @phan-suppress-next-line PhanTypeMismatchArgumentReal return parent::getWeightScale( $index, $conn ); } @@ -52,7 +53,7 @@ class LoadMonitorMySQL extends LoadMonitor { $res = $conn->query( 'SHOW STATUS', __METHOD__ ); $s = $res ? $conn->fetchObject( $res ) : false; if ( $s === false ) { - $host = $this->parent->getServerName( $index ); + $host = $this->lb->getServerName( $index ); $this->replLogger->error( __METHOD__ . ": could not get status for $host" ); } else { // https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html