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