PBM-144 Updated MasterSlave to support hosts without port

This commit is contained in:
Carlos Salguero
2019-07-18 12:03:39 -03:00
parent 1ce6068796
commit a83fbebf8d
10 changed files with 32 additions and 23 deletions

View File

@@ -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.
}