From: Aaron Schulz Date: Thu, 30 Nov 2017 22:10:23 +0000 (-0800) Subject: Use parent function in mysql DB class in getWeightScale() X-Git-Tag: 1.31.0-rc.0~1341^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/Bar?a=commitdiff_plain;h=bea3a7c88e5ac914015884405a6d3541e3bf9328;p=lhc%2Fweb%2Fwiklou.git Use parent function in mysql DB class in getWeightScale() May as well keep this case in sync with the base class Change-Id: I4c62c3247ec3372c6a274b889fac1b7a883f5cf5 --- diff --git a/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php b/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php index f8ad329bb0..98cff6d77a 100644 --- a/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php +++ b/includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php @@ -46,7 +46,7 @@ class LoadMonitorMySQL extends LoadMonitor { protected function getWeightScale( $index, IDatabase $conn = null ) { if ( !$conn ) { - return 0.0; + return parent::getWeightScale( $index, $conn ); } $weight = 1.0;