mariadb/include
Michael Widenius 70823e1d91 MDEV-5120 Test suite test maria-no-logging fails
The reason for the failure was a bug in an include file on debian that causes 'struct stat'
to have different sized depending on the environment.

This patch fixes so that we always include my_global.h or my_config.h before we include any other files.

Other things:
- Removed #include <my_global.h> in some include files; Better to always do this at the top level to have as few
  "always-include-this-file-first' files as possible.
- Removed usage of some include files that where already included by my_global.h or by other files.


client/mysql_plugin.c:
  Use my_global.h first
client/mysqlslap.c:
  Remove duplicated include files
extra/comp_err.c:
  Remove duplicated include files
include/m_string.h:
  Remove duplicated include files
include/maria.h:
  Remove duplicated include files
libmysqld/emb_qcache.cc:
  Use my_global.h first
plugin/semisync/semisync.h:
  Use my_pthread.h first
sql/datadict.cc:
  Use my_global.h first
sql/debug_sync.cc:
  Use my_global.h first
sql/derror.cc:
  Use my_global.h first
sql/des_key_file.cc:
  Use my_global.h first
sql/discover.cc:
  Use my_global.h first
sql/event_data_objects.cc:
  Use my_global.h first
sql/event_db_repository.cc:
  Use my_global.h first
sql/event_parse_data.cc:
  Use my_global.h first
sql/event_queue.cc:
  Use my_global.h first
sql/event_scheduler.cc:
  Use my_global.h first
sql/events.cc:
  Use my_global.h first
sql/field.cc:
  Use my_global.h first
  Remove duplicated include files
sql/field_conv.cc:
  Use my_global.h first
sql/filesort.cc:
  Use my_global.h first
  Remove duplicated include files
sql/gstream.cc:
  Use my_global.h first
sql/ha_ndbcluster.cc:
  Use my_global.h first
sql/ha_ndbcluster_binlog.cc:
  Use my_global.h first
sql/ha_ndbcluster_cond.cc:
  Use my_global.h first
sql/ha_partition.cc:
  Use my_global.h first
sql/handler.cc:
  Use my_global.h first
sql/hash_filo.cc:
  Use my_global.h first
sql/hostname.cc:
  Use my_global.h first
sql/init.cc:
  Use my_global.h first
sql/item.cc:
  Use my_global.h first
sql/item_buff.cc:
  Use my_global.h first
sql/item_cmpfunc.cc:
  Use my_global.h first
sql/item_create.cc:
  Use my_global.h first
sql/item_geofunc.cc:
  Use my_global.h first
sql/item_inetfunc.cc:
  Use my_global.h first
sql/item_row.cc:
  Use my_global.h first
sql/item_strfunc.cc:
  Use my_global.h first
sql/item_subselect.cc:
  Use my_global.h first
sql/item_sum.cc:
  Use my_global.h first
sql/item_timefunc.cc:
  Use my_global.h first
sql/item_xmlfunc.cc:
  Use my_global.h first
sql/key.cc:
  Use my_global.h first
sql/lock.cc:
  Use my_global.h first
sql/log.cc:
  Use my_global.h first
sql/log_event.cc:
  Use my_global.h first
sql/log_event_old.cc:
  Use my_global.h first
sql/mf_iocache.cc:
  Use my_global.h first
sql/mysql_install_db.cc:
  Remove duplicated include files
sql/mysqld.cc:
  Remove duplicated include files
sql/net_serv.cc:
  Remove duplicated include files
sql/opt_range.cc:
  Use my_global.h first
sql/opt_subselect.cc:
  Use my_global.h first
sql/opt_sum.cc:
  Use my_global.h first
sql/parse_file.cc:
  Use my_global.h first
sql/partition_info.cc:
  Use my_global.h first
sql/procedure.cc:
  Use my_global.h first
sql/protocol.cc:
  Use my_global.h first
sql/records.cc:
  Use my_global.h first
sql/records.h:
  Don't include my_global.h
  Better to do this at the upper level
sql/repl_failsafe.cc:
  Use my_global.h first
sql/rpl_filter.cc:
  Use my_global.h first
sql/rpl_gtid.cc:
  Use my_global.h first
sql/rpl_handler.cc:
  Use my_global.h first
sql/rpl_injector.cc:
  Use my_global.h first
sql/rpl_record.cc:
  Use my_global.h first
sql/rpl_record_old.cc:
  Use my_global.h first
sql/rpl_reporting.cc:
  Use my_global.h first
sql/rpl_rli.cc:
  Use my_global.h first
sql/rpl_tblmap.cc:
  Use my_global.h first
sql/rpl_utility.cc:
  Use my_global.h first
sql/set_var.cc:
  Added comment
sql/slave.cc:
  Use my_global.h first
sql/sp.cc:
  Use my_global.h first
sql/sp_cache.cc:
  Use my_global.h first
sql/sp_head.cc:
  Use my_global.h first
sql/sp_pcontext.cc:
  Use my_global.h first
sql/sp_rcontext.cc:
  Use my_global.h first
sql/spatial.cc:
  Use my_global.h first
sql/sql_acl.cc:
  Use my_global.h first
sql/sql_admin.cc:
  Use my_global.h first
sql/sql_analyse.cc:
  Use my_global.h first
sql/sql_audit.cc:
  Use my_global.h first
sql/sql_base.cc:
  Use my_global.h first
sql/sql_binlog.cc:
  Use my_global.h first
sql/sql_bootstrap.cc:
  Use my_global.h first
  Use my_global.h first
sql/sql_cache.cc:
  Use my_global.h first
sql/sql_class.cc:
  Use my_global.h first
sql/sql_client.cc:
  Use my_global.h first
sql/sql_connect.cc:
  Use my_global.h first
sql/sql_crypt.cc:
  Use my_global.h first
sql/sql_cursor.cc:
  Use my_global.h first
sql/sql_db.cc:
  Use my_global.h first
sql/sql_delete.cc:
  Use my_global.h first
sql/sql_derived.cc:
  Use my_global.h first
sql/sql_do.cc:
  Use my_global.h first
sql/sql_error.cc:
  Use my_global.h first
sql/sql_explain.cc:
  Use my_global.h first
sql/sql_expression_cache.cc:
  Use my_global.h first
sql/sql_handler.cc:
  Use my_global.h first
sql/sql_help.cc:
  Use my_global.h first
sql/sql_insert.cc:
  Use my_global.h first
sql/sql_lex.cc:
  Use my_global.h first
sql/sql_load.cc:
  Use my_global.h first
sql/sql_locale.cc:
  Use my_global.h first
sql/sql_manager.cc:
  Use my_global.h first
sql/sql_parse.cc:
  Use my_global.h first
sql/sql_partition.cc:
  Use my_global.h first
sql/sql_plugin.cc:
  Added comment
sql/sql_prepare.cc:
  Use my_global.h first
sql/sql_priv.h:
  Added error if we use this before including my_global.h
  This check is here becasue so many files includes sql_priv.h first.
sql/sql_profile.cc:
  Use my_global.h first
sql/sql_reload.cc:
  Use my_global.h first
sql/sql_rename.cc:
  Use my_global.h first
sql/sql_repl.cc:
  Use my_global.h first
sql/sql_select.cc:
  Use my_global.h first
sql/sql_servers.cc:
  Use my_global.h first
sql/sql_show.cc:
  Added comment
sql/sql_signal.cc:
  Use my_global.h first
sql/sql_statistics.cc:
  Use my_global.h first
sql/sql_table.cc:
  Use my_global.h first
sql/sql_tablespace.cc:
  Use my_global.h first
sql/sql_test.cc:
  Use my_global.h first
sql/sql_time.cc:
  Use my_global.h first
sql/sql_trigger.cc:
  Use my_global.h first
sql/sql_udf.cc:
  Use my_global.h first
sql/sql_union.cc:
  Use my_global.h first
sql/sql_update.cc:
  Use my_global.h first
sql/sql_view.cc:
  Use my_global.h first
sql/sys_vars.cc:
  Added comment
sql/table.cc:
  Use my_global.h first
sql/thr_malloc.cc:
  Use my_global.h first
sql/transaction.cc:
  Use my_global.h first
sql/uniques.cc:
  Use my_global.h first
sql/unireg.cc:
  Use my_global.h first
sql/unireg.h:
  Removed inclusion of my_global.h
storage/archive/ha_archive.cc:
  Added comment
storage/blackhole/ha_blackhole.cc:
  Use my_global.h first
storage/csv/ha_tina.cc:
  Use my_global.h first
storage/csv/transparent_file.cc:
  Use my_global.h first
storage/federated/ha_federated.cc:
  Use my_global.h first
storage/federatedx/federatedx_io.cc:
  Use my_global.h first
storage/federatedx/federatedx_io_mysql.cc:
  Use my_global.h first
storage/federatedx/federatedx_io_null.cc:
  Use my_global.h first
storage/federatedx/federatedx_txn.cc:
  Use my_global.h first
storage/heap/ha_heap.cc:
  Use my_global.h first
storage/innobase/handler/handler0alter.cc:
  Use my_global.h first
storage/maria/ha_maria.cc:
  Use my_global.h first
storage/maria/unittest/ma_maria_log_cleanup.c:
  Remove duplicated include files
storage/maria/unittest/test_file.c:
  Added comment
storage/myisam/ha_myisam.cc:
  Move sql_plugin.h first as this includes my_global.h
storage/myisammrg/ha_myisammrg.cc:
  Use my_global.h first
storage/oqgraph/oqgraph_thunk.cc:
  Use my_config.h and my_global.h first
  One could not include my_global.h before oqgraph_thunk.h (don't know why)
storage/spider/ha_spider.cc:
  Use my_global.h first
storage/spider/hs_client/config.cpp:
  Use my_global.h first
storage/spider/hs_client/escape.cpp:
  Use my_global.h first
storage/spider/hs_client/fatal.cpp:
  Use my_global.h first
storage/spider/hs_client/hstcpcli.cpp:
  Use my_global.h first
storage/spider/hs_client/socket.cpp:
  Use my_global.h first
storage/spider/hs_client/string_util.cpp:
  Use my_global.h first
storage/spider/spd_conn.cc:
  Use my_global.h first
storage/spider/spd_copy_tables.cc:
  Use my_global.h first
storage/spider/spd_db_conn.cc:
  Use my_global.h first
storage/spider/spd_db_handlersocket.cc:
  Use my_global.h first
storage/spider/spd_db_mysql.cc:
  Use my_global.h first
storage/spider/spd_db_oracle.cc:
  Use my_global.h first
storage/spider/spd_direct_sql.cc:
  Use my_global.h first
storage/spider/spd_i_s.cc:
  Use my_global.h first
storage/spider/spd_malloc.cc:
  Use my_global.h first
storage/spider/spd_param.cc:
  Use my_global.h first
storage/spider/spd_ping_table.cc:
  Use my_global.h first
storage/spider/spd_sys_table.cc:
  Use my_global.h first
storage/spider/spd_table.cc:
  Use my_global.h first
storage/spider/spd_trx.cc:
  Use my_global.h first
storage/xtradb/handler/handler0alter.cc:
  Use my_global.h first
storage/xtradb/handler/i_s.cc:
  Use my_global.h first
2014-09-30 20:31:14 +03:00
..
atomic compilation fixes for WITH_ATOMIC_OPS=rwlocks 2014-09-08 12:59:57 +02:00
mysql Bug#17283409 4-WAY DEADLOCK: ZOMBIES, PURGING BINLOGS, 2014-05-08 18:13:01 +05:30
base64.h Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6 2013-09-23 18:58:33 +04:00
big_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
byte_order_generic_x86_64.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
CMakeLists.txt merge 10-base->10.0 2013-11-11 23:40:53 +02:00
decimal.h 5.2 merge 2014-03-16 21:03:01 +01:00
errmsg.h 5.5.38 merge 2014-06-06 00:07:27 +02:00
ft_global.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
handler_ername.h Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02:00
handler_state.h
hash.h MDEV-5675 - Performance: my_hash_sort_bin is called too often 2014-03-06 16:19:12 +04:00
heap.h 5.5 merge 2014-03-26 22:25:38 +01:00
keycache.h Fixed problem with very slow shutdown when using 100,000 MyISAM tables with delay_key_write 2014-07-19 17:46:08 +03:00
lf.h cleanup: remove LF_REQUIRE_PINS, use compile_time_assert() instead of reimplementing it 2013-06-24 20:56:55 +02:00
little_endian.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
m_ctype.h - MDEV-6695 Bad column name for UCS2 string literals 2014-09-04 21:58:48 +04:00
m_string.h MDEV-5120 Test suite test maria-no-logging fails 2014-09-30 20:31:14 +03:00
ma_dyncol.h MDEV-5404 Can't free data returned by mariadb_dyncol_unpack on windows 2014-03-19 09:58:18 +01:00
maria.h MDEV-5120 Test suite test maria-no-logging fails 2014-09-30 20:31:14 +03:00
my_aes.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_alarm.h
my_alloc.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
my_atomic.h
my_attribute.h 5.1 merge 2014-03-16 13:59:44 +01:00
my_base.h merge of "BUG#18233051 - FTS: FAILING ASSERTION: NUM_TOKEN < MAX_PROXIMITY_ITEM" 2014-05-07 22:36:40 +02:00
my_bit.h
my_bitmap.h Fixes to get valgrind to work with jemalloc 2014-01-02 11:19:19 +02:00
my_byteorder.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_check_opt.h 5.5 merge 2014-02-01 00:54:03 +01:00
my_compare.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_compiler.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
my_context.h 10.0-base merge 2013-07-18 16:46:57 +02:00
my_cpu.h MDEV-6450 - MariaDB crash on Power8 when built with advance tool chain 2014-08-19 19:28:35 +03:00
my_dbug.h MDEV-26: Global transaction ID. 2013-03-26 14:44:27 +01:00
my_decimal_limits.h
my_default.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_dir.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_getopt.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_global.h Merge 5.3->5.5 2014-06-04 21:53:15 +04:00
my_handler_errors.h merge of "BUG#18233051 - FTS: FAILING ASSERTION: NUM_TOKEN < MAX_PROXIMITY_ITEM" 2014-05-07 22:36:40 +02:00
my_libwrap.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_list.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_md5.h 10.0-monty merge 2013-07-21 16:39:19 +02:00
my_net.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_nosys.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
my_pthread.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_rdtsc.h
my_rnd.h Temporary commit of 10.0-merge 2013-03-26 00:03:13 +02:00
my_stacktrace.h
my_sys.h MDEV-6274 Collation usage statistics 2014-08-11 05:45:45 +04:00
my_time.h 5.5.38 merge 2014-06-06 00:07:27 +02:00
my_tree.h 5.2 merge 2014-03-16 21:03:01 +01:00
my_uctype.h
my_user.h support DEFINER=role and DEFINER=current_role 2013-10-18 12:17:49 -07:00
my_valgrind.h 10.0-base merge 2014-02-26 15:28:07 +01:00
my_xml.h MDEV-4928 Merge collation customization improvements 2013-10-02 15:04:07 +04:00
myisam.h 5.5 merge 2014-09-16 14:03:17 +02:00
myisamchk.h 5.5 merge 2014-02-01 00:54:03 +01:00
myisammrg.h fix merge.test: online alter table support for MERGE tables, really 2013-07-11 18:57:11 +02:00
myisampack.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
mysql.h Client attributes 2013-10-03 18:00:44 +03:00
mysql.h.pp Fixed assert in perfschema/pfs.cc::start_idle_wait_v1 when using performance schema and big packets in debug version. 2014-07-19 13:38:40 +03:00
mysql_async.h
mysql_com.h Fixed assert in perfschema/pfs.cc::start_idle_wait_v1 when using performance schema and big packets in debug version. 2014-07-19 13:38:40 +03:00
mysql_com_server.h
mysql_embed.h
mysql_time.h 10.0-base merge 2013-07-18 16:46:57 +02:00
mysql_version.h.in mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
mysqld_default_groups.h
mysys_err.h
password.h Do the partial merge of WL#5602 correctly: 2013-12-09 12:38:02 +01:00
probes_mysql.d.base
probes_mysql.h
probes_mysql_nodtrace.h MDEV-4243 [PATCH] Warnings/errors while compiling with clang 2013-11-28 22:35:59 +01:00
queues.h MDEV-4984: Implement MASTER_GTID_WAIT() and @@LAST_GTID. 2014-02-07 19:15:28 +01:00
rijndael.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
service_versions.h MroongaSE: addint thd_autoinc and thd_error_context plugin services 2013-12-12 19:18:49 +04:00
sha1.h SHA1 service 2013-07-13 17:48:06 +02:00
sha2.h
sql_common.h 5.2 merge 2014-03-16 21:03:01 +01:00
sslopt-case.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
sslopt-longopts.h
sslopt-vars.h Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
t_ctype.h Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
thr_alarm.h 5.2 merge 2014-03-16 21:03:01 +01:00
thr_lock.h
thread_pool_priv.h 5.5.39 merge 2014-08-07 18:06:56 +02:00
typelib.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
violite.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
waiting_threads.h
welcome_copyright_notice.h mysql-5.1.73 merge 2014-03-15 18:24:15 +01:00
wqueue.h