diff options
author | Mats Kindahl <mats@sun.com> | 2010-03-31 16:05:33 +0200 |
---|---|---|
committer | Mats Kindahl <mats@sun.com> | 2010-03-31 16:05:33 +0200 |
commit | 23d8586dbfdfdf02fa2f801b9dad91db53025a64 (patch) | |
tree | 19f32879e77ada23d733f35173a25f410d655ebe /storage | |
parent | d7dd2fc92f042596c2e72a96934bb207270e7419 (diff) | |
download | mariadb-git-23d8586dbfdfdf02fa2f801b9dad91db53025a64.tar.gz |
WL#5030: Split and remove mysql_priv.h
This patch:
- Moves all definitions from the mysql_priv.h file into
header files for the component where the variable is
defined
- Creates header files if the component lacks one
- Eliminates all include directives from mysql_priv.h
- Eliminates all circular include cycles
- Rename time.cc to sql_time.cc
- Rename mysql_priv.h to sql_priv.h
Diffstat (limited to 'storage')
47 files changed, 121 insertions, 47 deletions
diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc index f95a7252f2f..e63ec33465e 100644 --- a/storage/archive/ha_archive.cc +++ b/storage/archive/ha_archive.cc @@ -17,8 +17,9 @@ #pragma implementation // gcc: Class implementation #endif -#include "mysql_priv.h" +#include "sql_priv.h" #include "probes_mysql.h" +#include "sql_class.h" // SSV #include <myisam.h> #include "ha_archive.h" diff --git a/storage/blackhole/ha_blackhole.cc b/storage/blackhole/ha_blackhole.cc index e10054a79f2..7ec60aad88a 100644 --- a/storage/blackhole/ha_blackhole.cc +++ b/storage/blackhole/ha_blackhole.cc @@ -19,9 +19,11 @@ #endif #define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "probes_mysql.h" #include "ha_blackhole.h" +#include "sql_class.h" // THD, SYSTEM_THREAD_SLAVE_SQL /* Static declarations for handlerton */ diff --git a/storage/blackhole/ha_blackhole.h b/storage/blackhole/ha_blackhole.h index 289e449be10..9de3c22c614 100644 --- a/storage/blackhole/ha_blackhole.h +++ b/storage/blackhole/ha_blackhole.h @@ -17,6 +17,10 @@ #pragma interface /* gcc class implementation */ #endif +#include "thr_lock.h" /* THR_LOCK */ +#include "handler.h" /* handler */ +#include "table.h" /* TABLE_SHARE */ + /* Shared structure for correct LOCK operation */ diff --git a/storage/csv/ha_tina.cc b/storage/csv/ha_tina.cc index cefb1577b16..6ab40e023d7 100644 --- a/storage/csv/ha_tina.cc +++ b/storage/csv/ha_tina.cc @@ -45,8 +45,10 @@ TODO: #pragma implementation // gcc: Class implementation #endif -#include "mysql_priv.h" +#include "sql_priv.h" +#include "sql_class.h" // SSV #include <mysql/plugin.h> +#include <mysql/psi/mysql_file.h> #include "ha_tina.h" #include "probes_mysql.h" diff --git a/storage/csv/transparent_file.cc b/storage/csv/transparent_file.cc index 937f1fb292a..44ca2df026f 100644 --- a/storage/csv/transparent_file.cc +++ b/storage/csv/transparent_file.cc @@ -17,8 +17,10 @@ #pragma implementation // gcc: Class implementation #endif -#include "mysql_priv.h" +#include "sql_priv.h" +#include <mysql/psi/mysql_file.h> #include "transparent_file.h" +#include "my_sys.h" // MY_WME, MY_ALLOW_ZERO_PTR, MY_SEEK_SET Transparent_file::Transparent_file() : lower_bound(0), buff_size(IO_SIZE) { diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index fb143f0b8d4..2fbb17e46bd 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -91,11 +91,11 @@ #pragma implementation // gcc: Class implementation #endif -#define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" +#include "sql_class.h" // MYSQL_HANDLERTON_INTERFACE_VERSION #include "ha_example.h" #include "probes_mysql.h" -#include <mysql/plugin.h> +#include "sql_plugin.h" static handler *example_create_handler(handlerton *hton, TABLE_SHARE *table, diff --git a/storage/example/ha_example.h b/storage/example/ha_example.h index 0c04249b6eb..12e088f5f05 100644 --- a/storage/example/ha_example.h +++ b/storage/example/ha_example.h @@ -35,6 +35,11 @@ #pragma interface /* gcc class implementation */ #endif +#include "my_global.h" /* ulonglong */ +#include "thr_lock.h" /* THR_LOCK, THR_LOCK_DATA */ +#include "handler.h" /* handler */ +#include "my_base.h" /* ha_rows */ + /** @brief EXAMPLE_SHARE is a structure that will be shared among all open handlers. This example implements the minimum of what you will probably need. diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc index 824290aa07c..5534c520604 100644 --- a/storage/federated/ha_federated.cc +++ b/storage/federated/ha_federated.cc @@ -372,7 +372,10 @@ #define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" +#include "sql_servers.h" // FOREIGN_SERVER, get_server_by_name +#include "sql_class.h" // SSV +#include "sql_analyse.h" // append_escaped #include <mysql/plugin.h> #ifdef USE_PRAGMA_IMPLEMENTATION @@ -383,6 +386,7 @@ #include "probes_mysql.h" #include "m_string.h" +#include "key.h" // key_copy #include <mysql/plugin.h> diff --git a/storage/heap/ha_heap.cc b/storage/heap/ha_heap.cc index 4d01b9fd1c9..3abffc7087f 100644 --- a/storage/heap/ha_heap.cc +++ b/storage/heap/ha_heap.cc @@ -19,11 +19,12 @@ #endif #define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" #include "probes_mysql.h" -#include <mysql/plugin.h> +#include "sql_plugin.h" #include "ha_heap.h" #include "heapdef.h" +#include "sql_base.h" // enum_tdc_remove_table_type static handler *heap_create_handler(handlerton *hton, TABLE_SHARE *table, diff --git a/storage/heap/ha_heap.h b/storage/heap/ha_heap.h index 22722129f4c..7185fbc7720 100644 --- a/storage/heap/ha_heap.h +++ b/storage/heap/ha_heap.h @@ -21,6 +21,7 @@ /* class for the the heap handler */ #include <heap.h> +#include "sql_class.h" /* THD */ class ha_heap: public handler { diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc index 77c223a67ab..3debf2805b6 100644 --- a/storage/innobase/handler/ha_innodb.cc +++ b/storage/innobase/handler/ha_innodb.cc @@ -61,11 +61,14 @@ with this program; if not, write to the Free Software Foundation, Inc., #pragma implementation // gcc: Class implementation #endif -#include <mysql_priv.h> +#include <sql_table.h> // explain_filename, nz2, EXPLAIN_PARTITIONS_AS_COMMENT, + // EXPLAIN_FILENAME_MAX_EXTRA_LENGTH +#include <sql_acl.h> // PROCESS_ACL #include <m_ctype.h> #include <mysys_err.h> #include <mysql/plugin.h> +#include <mysql/innodb_priv.h> /** @file ha_innodb.cc */ @@ -106,7 +109,6 @@ extern "C" { #include "ha_innodb.h" #include "i_s.h" -#ifndef MYSQL_SERVER # ifndef MYSQL_PLUGIN_IMPORT # define MYSQL_PLUGIN_IMPORT /* nothing */ # endif /* MYSQL_PLUGIN_IMPORT */ @@ -116,7 +118,6 @@ extern "C" { but we need it here */ bool check_global_access(THD *thd, ulong want_access); #endif /* MYSQL_VERSION_ID < 50124 */ -#endif /* MYSQL_SERVER */ /** to protect innobase_open_files */ static pthread_mutex_t innobase_share_mutex; diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc index a5008991400..99c1d37b04c 100644 --- a/storage/innobase/handler/handler0alter.cc +++ b/storage/innobase/handler/handler0alter.cc @@ -21,8 +21,10 @@ Place, Suite 330, Boston, MA 02111-1307 USA Smart ALTER TABLE *******************************************************/ -#include <mysql_priv.h> +#include <unireg.h> #include <mysqld_error.h> +#include <sql_lex.h> // SQLCOM_CREATE_INDEX +#include <mysql/innodb_priv.h> extern "C" { #include "log0log.h" diff --git a/storage/innobase/handler/i_s.cc b/storage/innobase/handler/i_s.cc index 524fe696de2..7d8b4a8dd40 100644 --- a/storage/innobase/handler/i_s.cc +++ b/storage/innobase/handler/i_s.cc @@ -23,8 +23,8 @@ InnoDB INFORMATION SCHEMA tables interface to MySQL. Created July 18, 2007 Vasil Dimov *******************************************************/ -#include <mysql_priv.h> #include <mysqld_error.h> +#include <sql_acl.h> // PROCESS_ACL #include <m_ctype.h> #include <hash.h> @@ -32,7 +32,8 @@ Created July 18, 2007 Vasil Dimov #include <mysys_err.h> #include <my_sys.h> #include "i_s.h" -#include <mysql/plugin.h> +#include <sql_plugin.h> +#include <mysql/innodb_priv.h> extern "C" { #include "trx0i_s.h" diff --git a/storage/innobase/handler/mysql_addons.cc b/storage/innobase/handler/mysql_addons.cc index eae1fe9fbc2..ae6306e5db9 100644 --- a/storage/innobase/handler/mysql_addons.cc +++ b/storage/innobase/handler/mysql_addons.cc @@ -36,7 +36,7 @@ Created November 07, 2007 Vasil Dimov #define MYSQL_SERVER #endif /* MYSQL_SERVER */ -#include <mysql_priv.h> +#include <sql_priv.h> #include "mysql_addons.h" #include "univ.i" diff --git a/storage/myisam/ha_myisam.cc b/storage/myisam/ha_myisam.cc index 933347006fc..a831335cbb9 100644 --- a/storage/myisam/ha_myisam.cc +++ b/storage/myisam/ha_myisam.cc @@ -19,9 +19,10 @@ #endif #define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" #include "probes_mysql.h" -#include <mysql/plugin.h> +#include "key.h" // key_copy +#include "sql_plugin.h" #include <m_ctype.h> #include <my_bit.h> #include <myisampack.h> @@ -29,6 +30,8 @@ #include <stdarg.h> #include "myisamdef.h" #include "rt_index.h" +#include "sql_table.h" // tablename_to_filename +#include "sql_class.h" // THD ulonglong myisam_recover_options; static ulong opt_myisam_block_size; diff --git a/storage/myisam/ha_myisam.h b/storage/myisam/ha_myisam.h index 2f41670b934..f08150215a6 100644 --- a/storage/myisam/ha_myisam.h +++ b/storage/myisam/ha_myisam.h @@ -22,6 +22,11 @@ #include <myisam.h> #include <ft_global.h> +#include "handler.h" /* handler */ +#include "table.h" /* TABLE_SHARE */ + +struct TABLE_SHARE; +typedef struct st_ha_create_information HA_CREATE_INFO; #define HA_RECOVER_DEFAULT 1 /* Automatic recover active */ #define HA_RECOVER_BACKUP 2 /* Make a backupfile on recover */ diff --git a/storage/myisammrg/ha_myisammrg.cc b/storage/myisammrg/ha_myisammrg.cc index a153530ae80..6b7e60b126c 100644 --- a/storage/myisammrg/ha_myisammrg.cc +++ b/storage/myisammrg/ha_myisammrg.cc @@ -90,14 +90,19 @@ #endif #define MYSQL_SERVER 1 -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" +#include "sql_cache.h" // query_cache_* +#include "sql_show.h" // append_identifier +#include "sql_table.h" // build_table_filename #include "probes_mysql.h" #include <mysql/plugin.h> #include <m_ctype.h> #include "../myisam/ha_myisam.h" #include "ha_myisammrg.h" #include "myrg_def.h" - +#include "thr_malloc.h" // int_sql_alloc +#include "sql_class.h" // THD static handler *myisammrg_create_handler(handlerton *hton, TABLE_SHARE *table, diff --git a/storage/perfschema/ha_perfschema.cc b/storage/perfschema/ha_perfschema.cc index 68e1f3f3a11..588ba5edec1 100644 --- a/storage/perfschema/ha_perfschema.cc +++ b/storage/perfschema/ha_perfschema.cc @@ -18,7 +18,8 @@ Performance schema storage engine (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "ha_perfschema.h" #include "mysql/plugin.h" #include "pfs_engine_table.h" diff --git a/storage/perfschema/ha_perfschema.h b/storage/perfschema/ha_perfschema.h index 146b258ff47..92cc0476e73 100644 --- a/storage/perfschema/ha_perfschema.h +++ b/storage/perfschema/ha_perfschema.h @@ -16,6 +16,8 @@ #ifndef HA_PERFSCHEMA_H #define HA_PERFSCHEMA_H +#include "handler.h" /* class handler */ + #ifdef USE_PRAGMA_INTERFACE #pragma interface /* gcc class implementation */ #endif diff --git a/storage/perfschema/pfs.h b/storage/perfschema/pfs.h index 7af59ffce57..13d43cfce76 100644 --- a/storage/perfschema/pfs.h +++ b/storage/perfschema/pfs.h @@ -23,7 +23,8 @@ #define HAVE_PSI_1 -#include <mysql_priv.h> +#include <sql_priv.h> +#include <unireg.h> #include <mysql/psi/psi.h> extern struct PSI_bootstrap PFS_bootstrap; diff --git a/storage/perfschema/pfs_check.cc b/storage/perfschema/pfs_check.cc index 5d3746d371c..4ef4b8bdbc6 100644 --- a/storage/perfschema/pfs_check.cc +++ b/storage/perfschema/pfs_check.cc @@ -23,7 +23,7 @@ */ #include "my_global.h" -#include "mysql_priv.h" +#include "sql_priv.h" #include "pfs_server.h" #include "pfs_engine_table.h" diff --git a/storage/perfschema/pfs_column_values.cc b/storage/perfschema/pfs_column_values.cc index 3143cd97e5d..6da1e04e63a 100644 --- a/storage/perfschema/pfs_column_values.cc +++ b/storage/perfschema/pfs_column_values.cc @@ -19,7 +19,7 @@ schema tables (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "pfs_column_values.h" LEX_STRING PERFORMANCE_SCHEMA_str= diff --git a/storage/perfschema/pfs_column_values.h b/storage/perfschema/pfs_column_values.h index 6cd2e8687d1..0172ddd1d18 100644 --- a/storage/perfschema/pfs_column_values.h +++ b/storage/perfschema/pfs_column_values.h @@ -16,6 +16,8 @@ #ifndef PFS_COLUMN_VALUES_H #define PFS_COLUMN_VALUES_H +#include "m_string.h" /* LEX_STRING */ + /** @file storage/perfschema/pfs_column_values.h Literal values for columns used in the diff --git a/storage/perfschema/pfs_engine_table.cc b/storage/perfschema/pfs_engine_table.cc index d0f5315ff36..857b8a66de7 100644 --- a/storage/perfschema/pfs_engine_table.cc +++ b/storage/perfschema/pfs_engine_table.cc @@ -18,7 +18,7 @@ Performance schema tables (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "pfs_engine_table.h" #include "table_events_waits.h" @@ -37,6 +37,9 @@ #include "pfs_column_values.h" #include "pfs_instr.h" +#include "sql_base.h" // close_thread_tables +#include "lock.h" // MYSQL_LOCK_IGNORE_TIMEOUT + /** @addtogroup Performance_schema_engine @{ diff --git a/storage/perfschema/pfs_engine_table.h b/storage/perfschema/pfs_engine_table.h index 6a826c9da7d..b4c7a4ee866 100644 --- a/storage/perfschema/pfs_engine_table.h +++ b/storage/perfschema/pfs_engine_table.h @@ -16,6 +16,7 @@ #ifndef PFS_ENGINE_TABLE_H #define PFS_ENGINE_TABLE_H +#include "sql_acl.h" /* struct ACL_* */ /** @file storage/perfschema/pfs_engine_table.h Performance schema tables (declarations). diff --git a/storage/perfschema/pfs_instr.cc b/storage/perfschema/pfs_instr.cc index fbaac621dfb..fb40db02ca3 100644 --- a/storage/perfschema/pfs_instr.cc +++ b/storage/perfschema/pfs_instr.cc @@ -18,8 +18,10 @@ Performance schema instruments (implementation). */ +#include <string.h> + #include "my_global.h" -#include "mysql_priv.h" +#include "sql_priv.h" #include "my_sys.h" #include "pfs_stat.h" #include "pfs_instr.h" diff --git a/storage/perfschema/pfs_instr.h b/storage/perfschema/pfs_instr.h index a150a13fb75..a509d054d69 100644 --- a/storage/perfschema/pfs_instr.h +++ b/storage/perfschema/pfs_instr.h @@ -21,7 +21,7 @@ Performance schema instruments (declarations). */ -#include <mysql_priv.h> +#include <sql_priv.h> #include "pfs_lock.h" #include "pfs_instr_class.h" #include "pfs_events_waits.h" diff --git a/storage/perfschema/pfs_instr_class.h b/storage/perfschema/pfs_instr_class.h index 0a58095d612..4de9958033b 100644 --- a/storage/perfschema/pfs_instr_class.h +++ b/storage/perfschema/pfs_instr_class.h @@ -16,6 +16,8 @@ #ifndef PFS_INSTR_CLASS_H #define PFS_INSTR_CLASS_H +#include "mysql_com.h" /* NAME_LEN */ + /** @file storage/perfschema/pfs_instr_class.h Performance schema instruments meta data (declarations). @@ -36,7 +38,7 @@ */ #define PFS_MAX_FULL_PREFIX_NAME_LENGTH 32 -#include <mysql_priv.h> +#include <sql_priv.h> #include <mysql/psi/psi.h> #include "pfs_lock.h" #include "pfs_stat.h" diff --git a/storage/perfschema/pfs_server.cc b/storage/perfschema/pfs_server.cc index 66b8a7fb22b..a1216c6ac30 100644 --- a/storage/perfschema/pfs_server.cc +++ b/storage/perfschema/pfs_server.cc @@ -21,7 +21,7 @@ #include "my_global.h" #include "my_sys.h" #include "mysys_err.h" -#include "mysql_priv.h" +#include "sql_priv.h" #include "pfs_server.h" #include "pfs.h" #include "pfs_global.h" diff --git a/storage/perfschema/table_all_instr.cc b/storage/perfschema/table_all_instr.cc index e6cd7897f6f..18c0fcfafc6 100644 --- a/storage/perfschema/table_all_instr.cc +++ b/storage/perfschema/table_all_instr.cc @@ -18,7 +18,8 @@ Abstract tables for all instruments (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "my_global.h" #include "table_all_instr.h" #include "pfs_global.h" diff --git a/storage/perfschema/table_events_waits.cc b/storage/perfschema/table_events_waits.cc index 3a12578597e..cb565373bd8 100644 --- a/storage/perfschema/table_events_waits.cc +++ b/storage/perfschema/table_events_waits.cc @@ -18,7 +18,7 @@ Table EVENTS_WAITS_xxx (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "table_events_waits.h" #include "pfs_instr_class.h" #include "pfs_instr.h" diff --git a/storage/perfschema/table_events_waits_summary.cc b/storage/perfschema/table_events_waits_summary.cc index c3d678d374c..0eca9f6722e 100644 --- a/storage/perfschema/table_events_waits_summary.cc +++ b/storage/perfschema/table_events_waits_summary.cc @@ -18,7 +18,8 @@ Table EVENTS_WAITS_SUMMARY_BY_xxx (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr_class.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/table_file_instances.cc b/storage/perfschema/table_file_instances.cc index b6bc7ecbcf3..3de5cbe4b47 100644 --- a/storage/perfschema/table_file_instances.cc +++ b/storage/perfschema/table_file_instances.cc @@ -18,7 +18,8 @@ Table FILE_INSTANCES (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/table_file_summary.cc b/storage/perfschema/table_file_summary.cc index 0db4e08625a..16942e73916 100644 --- a/storage/perfschema/table_file_summary.cc +++ b/storage/perfschema/table_file_summary.cc @@ -18,7 +18,8 @@ Table FILE_SUMMARY_BY_xxx (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr_class.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/table_performance_timers.cc b/storage/perfschema/table_performance_timers.cc index ab4e72b89fa..7a20e7e18e0 100644 --- a/storage/perfschema/table_performance_timers.cc +++ b/storage/perfschema/table_performance_timers.cc @@ -18,7 +18,8 @@ Table PERFORMANCE_TIMERS (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "my_global.h" #include "table_performance_timers.h" #include "pfs_timer.h" #include "pfs_global.h" diff --git a/storage/perfschema/table_processlist.cc b/storage/perfschema/table_processlist.cc index d0707b9df60..7518882ccea 100644 --- a/storage/perfschema/table_processlist.cc +++ b/storage/perfschema/table_processlist.cc @@ -18,7 +18,7 @@ Table PROCESSLIST (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "table_processlist.h" #include "pfs_instr_class.h" #include "pfs_instr.h" diff --git a/storage/perfschema/table_setup_consumers.cc b/storage/perfschema/table_setup_consumers.cc index f23dca8a675..ff74e7d3f28 100644 --- a/storage/perfschema/table_setup_consumers.cc +++ b/storage/perfschema/table_setup_consumers.cc @@ -18,7 +18,7 @@ Table SETUP_CONSUMERS (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "table_setup_consumers.h" #include "pfs_instr.h" #include "pfs_events_waits.h" diff --git a/storage/perfschema/table_setup_instruments.cc b/storage/perfschema/table_setup_instruments.cc index 6756e780d78..095299c4b69 100644 --- a/storage/perfschema/table_setup_instruments.cc +++ b/storage/perfschema/table_setup_instruments.cc @@ -18,7 +18,8 @@ Table SETUP_INSTRUMENTS (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr_class.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/table_setup_objects.cc b/storage/perfschema/table_setup_objects.cc index 53a80782da0..b75bece83bd 100644 --- a/storage/perfschema/table_setup_objects.cc +++ b/storage/perfschema/table_setup_objects.cc @@ -18,7 +18,8 @@ Table SETUP_OBJECTS (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr_class.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/table_setup_timers.cc b/storage/perfschema/table_setup_timers.cc index 2d57adb3a85..98e27808e0a 100644 --- a/storage/perfschema/table_setup_timers.cc +++ b/storage/perfschema/table_setup_timers.cc @@ -18,7 +18,7 @@ Table SETUP_TIMERS (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" #include "table_setup_timers.h" #include "pfs_column_values.h" #include "pfs_timer.h" diff --git a/storage/perfschema/table_sync_instances.cc b/storage/perfschema/table_sync_instances.cc index a783b5b817b..c76c62cc9fd 100644 --- a/storage/perfschema/table_sync_instances.cc +++ b/storage/perfschema/table_sync_instances.cc @@ -19,7 +19,8 @@ and COND_INSTANCES (implementation). */ -#include "mysql_priv.h" +#include "sql_priv.h" +#include "unireg.h" #include "pfs_instr.h" #include "pfs_column_types.h" #include "pfs_column_values.h" diff --git a/storage/perfschema/unittest/pfs-t.cc b/storage/perfschema/unittest/pfs-t.cc index 2b64aec3416..012c6e7d87a 100644 --- a/storage/perfschema/unittest/pfs-t.cc +++ b/storage/perfschema/unittest/pfs-t.cc @@ -13,13 +13,17 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mysql_priv.h> +#include <sql_priv.h> +#include <my_global.h> #include <pfs_server.h> #include <pfs_instr_class.h> #include <pfs_instr.h> #include <pfs_global.h> #include <tap.h> +#include <string.h> +#include <memory.h> + #include "stub_print_error.h" /* test helpers, to simulate the setup */ diff --git a/storage/perfschema/unittest/pfs_instr-oom-t.cc b/storage/perfschema/unittest/pfs_instr-oom-t.cc index d7810eedb04..4ea2e038b24 100644 --- a/storage/perfschema/unittest/pfs_instr-oom-t.cc +++ b/storage/perfschema/unittest/pfs_instr-oom-t.cc @@ -13,7 +13,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mysql_priv.h> +#include <sql_priv.h> +#include <my_global.h> #include <pfs_instr.h> #include <pfs_stat.h> #include <pfs_global.h> diff --git a/storage/perfschema/unittest/pfs_instr-t.cc b/storage/perfschema/unittest/pfs_instr-t.cc index f85de601579..4e73276b467 100644 --- a/storage/perfschema/unittest/pfs_instr-t.cc +++ b/storage/perfschema/unittest/pfs_instr-t.cc @@ -13,12 +13,15 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mysql_priv.h> +#include <sql_priv.h> +#include <my_global.h> #include <pfs_instr.h> #include <pfs_stat.h> #include <pfs_global.h> #include <tap.h> +#include <memory.h> + void test_no_instruments() { int rc; diff --git a/storage/perfschema/unittest/pfs_instr_class-oom-t.cc b/storage/perfschema/unittest/pfs_instr_class-oom-t.cc index 53100571323..9cab0d18b33 100644 --- a/storage/perfschema/unittest/pfs_instr_class-oom-t.cc +++ b/storage/perfschema/unittest/pfs_instr_class-oom-t.cc @@ -13,7 +13,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mysql_priv.h> +#include <sql_priv.h> +#include <my_global.h> #include <pfs_instr_class.h> #include <pfs_global.h> #include <tap.h> diff --git a/storage/perfschema/unittest/pfs_instr_class-t.cc b/storage/perfschema/unittest/pfs_instr_class-t.cc index 0a1e0c2d0b1..5d7e0bf734f 100644 --- a/storage/perfschema/unittest/pfs_instr_class-t.cc +++ b/storage/perfschema/unittest/pfs_instr_class-t.cc @@ -13,7 +13,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <mysql_priv.h> +#include <sql_priv.h> +#include <my_global.h> +#include <string.h> // strncpy #include <pfs_instr_class.h> #include <pfs_instr.h> #include <pfs_global.h> diff --git a/storage/perfschema/unittest/pfs_timer-t.cc b/storage/perfschema/unittest/pfs_timer-t.cc index 8fa29306982..a649257e0c5 100644 --- a/storage/perfschema/unittest/pfs_timer-t.cc +++ b/storage/perfschema/unittest/pfs_timer-t.cc @@ -14,7 +14,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <mysql_priv.h> +#include <my_global.h> #include <pfs_timer.h> +#include "my_sys.h" #include <tap.h> void test_timers() |