mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-17 01:01:39 +08:00
Make GeneralLogParser.pm understand the "as" part of a Connect command.
This commit is contained in:
@@ -9682,7 +9682,8 @@ sub parse_event {
|
||||
$cmd = $arg;
|
||||
}
|
||||
else {
|
||||
my ($user, undef, $db) = $arg =~ /(\S+)/g;
|
||||
my ($user) = $arg =~ m/(\S+)/;
|
||||
my ($db) = $arg =~ m/on (\S+)/;
|
||||
my $host;
|
||||
($user, $host) = split(/@/, $user);
|
||||
PTDEBUG && _d('Connect', $user, '@', $host, 'on', $db);
|
||||
|
||||
Reference in New Issue
Block a user