1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Tests for MDEV-18892 Regression in slow log and admin statements

The patch for MDEV-15945 fixed MDEV-18892. Adding tests only.
This commit is contained in:
Alexander Barkov
2019-03-12 18:46:37 +04:00
parent 3b2a568589
commit 90ce95de4b
3 changed files with 266 additions and 0 deletions

View File

@ -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)) &&