mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 05:58:16 +00:00
PBM-144 Updated MasterSlave to support hosts without port
This commit is contained in:
@@ -2435,6 +2435,7 @@ sub _find_slaves_by_processlist {
|
||||
grep { $_ }
|
||||
map {
|
||||
my ( $host ) = $_->{host} =~ m/^([^:]+):/;
|
||||
$host ||= $_->{host};
|
||||
if ( $host eq 'localhost' ) {
|
||||
$host = '127.0.0.1'; # Replication never uses sockets.
|
||||
}
|
||||
|
Reference in New Issue
Block a user