mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
SlowLogParser leaved host empty when --skip-name-resolve was on. Now uses IP if empty - 1262456
This commit is contained in:
@@ -587,7 +587,7 @@ test_log_parser(
|
||||
'ip' => '1.2.3.8',
|
||||
'arg' => 'administrator command: Quit',
|
||||
'Thread_id' => '5',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.000002',
|
||||
@@ -602,7 +602,7 @@ test_log_parser(
|
||||
'ip' => '1.2.3.8',
|
||||
arg => 'SET NAMES utf8',
|
||||
'Thread_id' => '6',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.000899',
|
||||
@@ -616,7 +616,7 @@ test_log_parser(
|
||||
'arg' => 'SELECT MIN(id),MAX(id) FROM tbl',
|
||||
'ip' => '1.2.3.8',
|
||||
'Thread_id' => '6',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.018799',
|
||||
@@ -664,7 +664,7 @@ test_log_parser(
|
||||
'arg' => 'administrator command: Quit',
|
||||
'ip' => '1.2.3.8',
|
||||
'Thread_id' => '5',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.000002',
|
||||
@@ -679,7 +679,7 @@ test_log_parser(
|
||||
'ip' => '1.2.3.8',
|
||||
arg => 'SET NAMES utf8',
|
||||
'Thread_id' => '6',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.000899',
|
||||
@@ -694,7 +694,7 @@ test_log_parser(
|
||||
'arg' => 'administrator command: Quit',
|
||||
'ip' => '1.2.3.8',
|
||||
'Thread_id' => '7',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.018799',
|
||||
@@ -709,7 +709,7 @@ test_log_parser(
|
||||
'ip' => '1.2.3.8',
|
||||
arg => 'SET NAMES utf8',
|
||||
'Thread_id' => '9',
|
||||
'host' => '',
|
||||
'host' => '1.2.3.8',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'meow',
|
||||
'Query_time' => '0.000899',
|
||||
@@ -731,7 +731,7 @@ test_log_parser(
|
||||
'arg' => 'SET autocommit=1',
|
||||
'ip' => '10.1.250.19',
|
||||
'Thread_id' => '39387',
|
||||
'host' => '',
|
||||
'host' => '10.1.250.19',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'sabapp',
|
||||
'Query_time' => '0.000018',
|
||||
@@ -745,7 +745,7 @@ test_log_parser(
|
||||
'arg' => 'SET autocommit=1',
|
||||
'ip' => '10.1.250.19',
|
||||
'Thread_id' => '39387',
|
||||
'host' => '',
|
||||
'host' => '10.1.250.19',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'sabapp',
|
||||
'Query_time' => '0.000018',
|
||||
@@ -769,7 +769,7 @@ test_log_parser(
|
||||
'arg' => 'SET autocommit=1',
|
||||
'ip' => '10.1.250.19',
|
||||
'Thread_id' => '39796',
|
||||
'host' => '',
|
||||
'host' => '10.1.250.19',
|
||||
'pos_in_log' => '0',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'foo_app',
|
||||
@@ -785,7 +785,7 @@ test_log_parser(
|
||||
'ip' => '10.1.12.201',
|
||||
'ts' => '081127 8:51:20',
|
||||
'Thread_id' => '39947',
|
||||
'host' => '',
|
||||
'host' => '10.1.12.201',
|
||||
'pos_in_log' => '174',
|
||||
'Rows_examined' => '226',
|
||||
'Query_time' => '0.149435',
|
||||
@@ -800,7 +800,7 @@ test_log_parser(
|
||||
'ip' => '10.1.12.201',
|
||||
'ts' => '081127 8:51:21',
|
||||
'Thread_id' => '39947',
|
||||
'host' => '',
|
||||
'host' => '10.1.12.201',
|
||||
'pos_in_log' => '385',
|
||||
'Rows_examined' => '0',
|
||||
'Query_time' => '0.000005',
|
||||
@@ -815,7 +815,7 @@ test_log_parser(
|
||||
'arg' => 'SET autocommit=0',
|
||||
'ip' => '10.1.250.19',
|
||||
'Thread_id' => '39796',
|
||||
'host' => '',
|
||||
'host' => '10.1.250.19',
|
||||
'pos_in_log' => '600',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'foo_app',
|
||||
@@ -829,7 +829,7 @@ test_log_parser(
|
||||
'arg' => 'commit',
|
||||
'ip' => '10.1.250.19',
|
||||
'Thread_id' => '39796',
|
||||
'host' => '',
|
||||
'host' => '10.1.250.19',
|
||||
'pos_in_log' => '782',
|
||||
'Rows_examined' => '0',
|
||||
'user' => 'foo_app',
|
||||
@@ -965,7 +965,7 @@ test_log_parser(
|
||||
Thread_id => '5',
|
||||
arg => 'administrator command: Quit',
|
||||
cmd => 'Admin',
|
||||
host => '',
|
||||
host => '1.2.3.8',
|
||||
ip => '1.2.3.8',
|
||||
pos_in_log => '0',
|
||||
user => 'meow',
|
||||
@@ -980,7 +980,7 @@ test_log_parser(
|
||||
arg => 'SET NAMES utf8',
|
||||
cmd => 'Query',
|
||||
db => 'db',
|
||||
host => '',
|
||||
host => '1.2.3.8',
|
||||
ip => '1.2.3.8',
|
||||
pos_in_log => '221',
|
||||
user => 'meow',
|
||||
@@ -995,7 +995,7 @@ test_log_parser(
|
||||
arg => 'administrator command: Quit',
|
||||
cmd => 'Admin',
|
||||
db => 'db2',
|
||||
host => '',
|
||||
host => '1.2.3.8',
|
||||
ip => '1.2.3.8',
|
||||
pos_in_log => '435',
|
||||
user => 'meow',
|
||||
@@ -1184,7 +1184,7 @@ test_log_parser(
|
||||
arg => 'SELECT missing_a_schema_above from crash_me',
|
||||
bytes => 43,
|
||||
cmd => 'Query',
|
||||
host => '',
|
||||
host => '10.1.12.30',
|
||||
ip => '10.1.12.30',
|
||||
pos_in_log => '0',
|
||||
ts => '081126 13:08:25',
|
||||
@@ -1319,7 +1319,7 @@ test_log_parser(
|
||||
Last_errno => 0,
|
||||
Killed => 0,
|
||||
db => 'test_db',
|
||||
host => '',
|
||||
host => '127.0.0.1',
|
||||
Schema => 'test_db',
|
||||
ip => '127.0.0.1',
|
||||
timestamp => '1111111111',
|
||||
@@ -1340,7 +1340,7 @@ test_log_parser(
|
||||
arg => 'update t set b = b + 30 where user_id=1',
|
||||
bytes => 39,
|
||||
cmd => 'Query',
|
||||
host => '',
|
||||
host => '127.0.0.1',
|
||||
ip => '127.0.0.1',
|
||||
pos_in_log => 596,
|
||||
timestamp => '2222222222',
|
||||
|
Reference in New Issue
Block a user