Percona-Lab / query-playback

Query Playback
Other
106 stars 47 forks source link

slowlog: don't interpret 'Time Id Command Argument' as a query #18

Closed undingen closed 7 years ago

undingen commented 7 years ago

The existing check did not trigger in many cases because the logs contain additional spaces between the words.

e.g.

/home/stewart/percona-server/5.5.20/Percona-Server-5.5.20-rel24.1/sql/mysqld, Version: 5.5.20-debug-log (MySQL Community Server (GPL)). started with:
Tcp port: 13000  Unix socket: /home/stewart/percona-server/5.5.20/Percona-Server-5.5.20-rel24.1/mysql-test/var/tmp/mysqld.1.sock
Time                 Id Command    Argument