X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmysql.php;h=c1e403cd3a094aa8027d343c9ee4e6c2ec8178c1;hb=62991fcb7a5027b1eceb5656829c1c65bf9f98cb;hp=9424402cdfc105302cba4f3e5e27483393eac4b2;hpb=9bd9b2f02b3001e1a90ec2861a31cb54b7c7f1ed;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 ) {