summaryrefslogtreecommitdiff
path: root/sql/log_slow.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-03-11 16:45:38 +0100
committerSergei Golubchik <serg@mariadb.org>2019-03-12 13:10:49 +0100
commitdda2e940fb035d41852e95a1c2f513ab1534b041 (patch)
tree1f0a9a90a727be8350cbbec077eb24c2ff2405ff /sql/log_slow.h
parentbc8ae50e7c1dd56ceb7fc39e05f87a104d3ce632 (diff)
downloadmariadb-git-dda2e940fb035d41852e95a1c2f513ab1534b041.tar.gz
pass the slow logging information in thd->query_plan_flags
This solves the following issues: * unlike lex->m_sql_cmd and lex->sql_command, thd->query_plan_flags is not reset in Prepared_statement::execute, it survives till the log_slow_statement(), so slow logging behaves correctly in --ps * using thd->query_plan_flags for both slow_log_filter and log_slow_admin_statements means the definition of "admin" statements for the slow log is the same no matter how it is filtered out.
Diffstat (limited to 'sql/log_slow.h')
-rw-r--r--sql/log_slow.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/log_slow.h b/sql/log_slow.h
index 3b6dbd1b2ac..5092e8332ed 100644
--- a/sql/log_slow.h
+++ b/sql/log_slow.h
@@ -34,4 +34,5 @@
#define QPLAN_FILESORT_PRIORITY_QUEUE (1U << 9)
/* ... */
+#define QPLAN_STATUS (1U << 31) /* not in the slow_log_filter */
#define QPLAN_MAX (1U << 31) /* reserved as placeholder */