mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-20 01:16:14 +00:00
Make GeneralLogParser.pm understand the "as" part of a Connect command.
This commit is contained in:
@@ -129,7 +129,8 @@ sub parse_event {
|
||||
else {
|
||||
# The Connect command may or may not be followed by 'on'.
|
||||
# When it is, 'on' may or may not be followed by a database.
|
||||
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