Use parent function in mysql DB class in getWeightScale()
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 30 Nov 2017 22:10:23 +0000 (14:10 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 30 Nov 2017 22:10:29 +0000 (14:10 -0800)
May as well keep this case in sync with the base class

Change-Id: I4c62c3247ec3372c6a274b889fac1b7a883f5cf5

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;