diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-03-12 18:46:37 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-03-12 18:46:37 +0400 |
commit | 90ce95de4b6f44735487c700f2b14d5ca1c4a315 (patch) | |
tree | 43d3a68b9ace342b48606ffb090ac731f8c178e3 /sql/sql_parse.cc | |
parent | 3b2a568589006681a91ba73cfac5ccbbb4ec77c2 (diff) | |
download | mariadb-git-90ce95de4b6f44735487c700f2b14d5ca1c4a315.tar.gz |
Tests for MDEV-18892 Regression in slow log and admin statements
The patch for MDEV-15945 fixed MDEV-18892. Adding tests only.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 04ea7dad8bb..099d3cd4bf1 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2047,6 +2047,9 @@ void log_slow_statement(THD *thd) if (!thd->enable_slow_log) goto end; // E.g. SP statement + DBUG_EXECUTE_IF("simulate_slow_query", + thd->server_status|= SERVER_QUERY_WAS_SLOW;); + if (((thd->server_status & SERVER_QUERY_WAS_SLOW) || ((thd->server_status & (SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) && |