X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmysql.php;h=c1e403cd3a094aa8027d343c9ee4e6c2ec8178c1;hb=7f2f49ad2368ae27f2d4db69b44c5f997197725e;hp=9424402cdfc105302cba4f3e5e27483393eac4b2;hpb=9c0eeb1a2d985f77134385975bf611ddc2bb8c7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mysql.php b/maintenance/mysql.php index 9424402cdf..c1e403cd3a 100644 --- a/maintenance/mysql.php +++ b/maintenance/mysql.php @@ -72,8 +72,6 @@ class MysqlMaintenance extends Maintenance { $host = $this->getOption( 'host' ); $serverCount = $lb->getServerCount(); for ( $index = 0; $index < $serverCount; ++$index ) { - $serverInfo = $lb->getServerInfo( $index ); - if ( $lb->getServerName( $index ) === $host ) { break; } @@ -139,9 +137,7 @@ class MysqlMaintenance extends Maintenance { } elseif ( substr_count( $realServer, ':' ) == 1 ) { // If we have a colon and something that's not a port number // inside the hostname, assume it's the socket location - $hostAndSocket = explode( ':', $realServer, 2 ); - $realServer = $hostAndSocket[0]; - $socket = $hostAndSocket[1]; + list( $realServer, $socket ) = explode( ':', $realServer, 2 ); } if ( $dbName === false ) {