PT-1707 IPV6 support for recursion method processlist

This commit is contained in:
Carlos Salguero
2019-04-11 17:44:17 -03:00
parent a9eeeb6fb1
commit a97e24be71
22 changed files with 65 additions and 52 deletions

View File

@@ -2434,7 +2434,7 @@ sub _find_slaves_by_processlist {
}
grep { $_ }
map {
my ( $host ) = $_->{host} =~ m/^([^:]+):/;
my ( $host ) = $_->{host} =~ m/^(.*):\d+$/;
if ( $host eq 'localhost' ) {
$host = '127.0.0.1'; # Replication never uses sockets.
}