From 70136c0aa252d8da2c698f3635ddce8c60b26bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Ronstr=C3=B6m?= Date: Thu, 10 Feb 2011 16:19:38 +0100 Subject: [PATCH] Updated thread_pool_priv.h with additional includes for thread pool plugins --- include/mysql/thread_pool_priv.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/mysql/thread_pool_priv.h b/include/mysql/thread_pool_priv.h index 2e8312d98ca..73e48cc33e7 100644 --- a/include/mysql/thread_pool_priv.h +++ b/include/mysql/thread_pool_priv.h @@ -18,6 +18,28 @@ #ifndef THREAD_POOL_PRIV_INCLUDED #define THREAD_POOL_PRIV_INCLUDED +/* + A thread pool plugins requires inclusion of sql_class.h to get proper + access to THD variables and functions. + There are some DTrace probes that requires definition inside the plugin, + this requires include of probes_mysql.h. + scheduler.h contains definitions required by the plugin. + A thread pool can also use DEBUG_SYNC and must thus include + debug_sync.h + To handle definitions of Information Schema plugins it is also required + to include sql_profile.h and table.h. + + The goal is to move all dependencies from a thread pool plugin on the + MySQL Server into a version-handled plugin API. +*/ +#define MYSQL_SERVER 1 +#include +#include +#include +#include +#include +#include + /* The thread pool must be able to execute commands using the connection state in THD object. This is the main objective of the thread pool to