diff options
author | unknown <tsmith/tim@siva.hindu.god> | 2006-10-03 21:26:55 -0600 |
---|---|---|
committer | unknown <tsmith/tim@siva.hindu.god> | 2006-10-03 21:26:55 -0600 |
commit | 0d833887e2cf72e99168649165fdd6dd94425b95 (patch) | |
tree | 61f7835d92e367da53a8b8c288ddb6b68591ac92 /mysql-test/t/show_check-master.opt | |
parent | afc1f9f83a3dbc870c690b49d8645609ae6aa92a (diff) | |
download | mariadb-git-0d833887e2cf72e99168649165fdd6dd94425b95.tar.gz |
Bug #19764: SHOW commands end up in the slow log as table scans
Set a flag when a SHOW command is parsed, and check it in log_slow_statement(). SHOW commands are not counted as slow queries, even if they use table scans.
mysql-test/t/show_check-master.opt:
BitKeeper file /usr/home/tim/m/bk/b19764/50/mysql-test/t/show_check-master.opt
mysql-test/r/show_check.result:
Add test for bug #19764
mysql-test/t/show_check.test:
Add test for bug #19764
sql/sql_lex.cc:
Set lex->is_show_command= FALSE in lex_start
sql/sql_lex.h:
Add LEX->is_slow_command flag to prevent SHOW commands from being written to the slow queries log
sql/sql_parse.cc:
Don't log slow statement if it is a SHOW command
sql/sql_yacc.yy:
Set lex->is_show_command for all SHOW commands
Diffstat (limited to 'mysql-test/t/show_check-master.opt')
-rw-r--r-- | mysql-test/t/show_check-master.opt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/show_check-master.opt b/mysql-test/t/show_check-master.opt new file mode 100644 index 00000000000..3eb98fc3d6b --- /dev/null +++ b/mysql-test/t/show_check-master.opt @@ -0,0 +1 @@ +--log-slow-queries --log-long-format --log-queries-not-using-indexes |