rdbms: fix bogus $fname parameter in LoadMonitorMySQL
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Mar 2018 14:46:16 +0000 (07:46 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 20 Mar 2018 14:46:16 +0000 (07:46 -0700)
Change-Id: Ib8862532362da148ddd6296646fba7483c6463d5

includes/libs/rdbms/loadmonitor/LoadMonitorMySQL.php

index 98cff6d..1fbc117 100644 (file)
@@ -51,7 +51,7 @@ class LoadMonitorMySQL extends LoadMonitor {
 
                $weight = 1.0;
                if ( $this->warmCacheRatio > 0 ) {
 
                $weight = 1.0;
                if ( $this->warmCacheRatio > 0 ) {
-                       $res = $conn->query( 'SHOW STATUS', false );
+                       $res = $conn->query( 'SHOW STATUS', __METHOD__ );
                        $s = $res ? $conn->fetchObject( $res ) : false;
                        if ( $s === false ) {
                                $host = $this->parent->getServerName( $index );
                        $s = $res ? $conn->fetchObject( $res ) : false;
                        if ( $s === false ) {
                                $host = $this->parent->getServerName( $index );