mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
PT-2295 - Fix tests on distributions
- Added regular expressions that match MariaDB Connector/C syntax for errors 2006 (Server has gone away) and 2013 (Lost connection)
This commit is contained in:
@@ -2433,7 +2433,9 @@ sub lost_connection {
|
||||
my ($self, $e) = @_;
|
||||
return 0 unless $e;
|
||||
return $e =~ m/MySQL server has gone away/
|
||||
|| $e =~ m/Server has gone away/
|
||||
|| $e =~ m/Lost connection to MySQL server/
|
||||
|| $e =~ m/Lost connection to server/
|
||||
|| $e =~ m/Server shutdown in progress/;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user