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:
@ -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)) &&
|
||||
|
Reference in New Issue
Block a user