Merge "Use parent function in mysql DB class in getWeightScale()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 30 Nov 2017 22:28:42 +0000 (22:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 30 Nov 2017 22:28:42 +0000 (22:28 +0000)
includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php

index f8ad329..98cff6d 100644 (file)
@@ -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;