mariadb/include
Vladislav Vaintroub 93efbc390d MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes
Stop linking plugins to the server executable on Windows.
Instead, extract whole server functionality into a large DLL, called
server.dll. Link both plugins, and small server "stub" exe to it.

This eliminates plugin dependency on the name of the server executable.
It also reduces the size of the packages (since tiny mysqld.exe
and mariadbd.exe are now both linked to one big DLL)

Also, simplify the functionality of exporing all symbols from selected
static libraries. Rely on WINDOWS_EXPORT_ALL_SYMBOLS, rather than old
self-backed solution.

fix compile error

replace GetProcAddress(GetModuleHandle(NULL), "variable_name")
for server exported data with actual variable names.

Runtime loading was never required,was error prone
, since symbols could be missing at runtime, and now it actually failed,
because we do not export symbols from executable anymore, but from a shared
library

This did require a MYSQL_PLUGIN_IMPORT decoration for the plugin,
but made the code more straightforward, and avoids missing symbols at
runtime (as mentioned before).

The audit plugin is still doing some dynamic loading, as it aims to work
cross-version. Now it won't work cross-version on Windows, as it already
uses some symbols that are *not* dynamically loaded, e.g fn_format
and those symbols now exported from server.dll , when earlier they were
exported by mysqld.exe

Windows, fixes for storage engine plugin loading
after various rebranding stuff

Create server.dll containing functionality of the whole server
make mariadbd.exe/mysqld.exe a stub that is only  calling mysqld_main()

fix build
2020-04-10 19:05:26 +02:00
..
atomic MDEV-19696 - Cleanup gcc sync builtins 2019-07-03 12:11:22 +03:00
mysql handler::rebind() 2020-03-24 20:47:41 +02:00
aria_backup.h MDEV-20306 Assert when converting encrypted Aria table to S3 2019-08-23 22:02:39 +02:00
assume_aligned.h Remove a misleading copyright message 2020-03-21 10:25:54 +02:00
big_endian.h Update FSF address 2019-05-11 19:25:02 +03:00
byte_order_generic.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
byte_order_generic_x86.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
byte_order_generic_x86_64.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
CMakeLists.txt Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
decimal.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
dur_prop.h Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
errmsg.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ft_global.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
handler_ername.h Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
handler_state.h Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
hash.h cleanup: PSI key is *always* the first argument 2020-03-10 19:24:23 +01:00
heap.h Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
intrusive_list.h Merge 10.2 into 10.3 2020-01-07 12:14:35 +02:00
json_lib.h MDEV-5313 Improving audit API. 2019-01-18 03:18:02 +04:00
keycache.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf.h Merge 10.3 into 10.4 2019-12-02 12:51:53 +03:00
little_endian.h Update FSF address 2019-05-11 19:25:02 +03:00
m_ctype.h MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes 2020-04-10 19:05:26 +02:00
m_string.h move my_assume_aligned() to a separate header 2020-03-20 18:47:35 +03:00
ma_dyncol.h MDEV-19897 Rename source code variable names from utf8 to utf8mb3 2019-06-28 12:37:04 +04:00
maria.h Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
my_alarm.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_alloc.h perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
my_atomic.h MDEV-19696 - Cleanup gcc sync builtins 2019-07-03 12:11:22 +03:00
my_attribute.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_base.h Updated optimizer costs in multi_range_read_info_const() and sql_select.cc 2020-03-27 03:58:32 +02:00
my_bit.h Coding style fixes 2020-04-04 14:55:51 +04:00
my_bitmap.h MDEV-21907: Fix some -Wconversion outside InnoDB 2020-03-12 19:44:52 +02:00
my_byteorder.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_check_opt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compare.h MDEV-21907: Fix some -Wconversion outside InnoDB 2020-03-12 19:44:52 +02:00
my_compiler.h MDEV-21743 Split up SUPER privilege to smaller privileges 2020-03-10 23:49:47 +04:00
my_context.h Merge branch '10.1' into 10.2 2016-03-23 22:36:46 +01:00
my_counter.h MDEV-17441 - InnoDB transition to C++11 atomics 2019-01-07 19:45:50 +04:00
my_cpu.h Fix build on aarch64, after MDEV-21534 2020-03-02 14:28:16 +01:00
my_crypt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_dbug.h MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes 2020-04-10 19:05:26 +02:00
my_decimal_limits.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_default.h MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes 2020-04-10 19:05:26 +02:00
my_dir.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_getopt.h MDEV-12684 Show what config file a sysvar got a value from 2019-10-14 10:29:30 +02:00
my_global.h MDEV-21082: isnan/isinf compilation errors, isfinite warnings on MacOS 2019-11-19 16:28:15 +03:00
my_handler_errors.h Merge 10.4 into 10.5 2019-05-23 10:32:21 +03:00
my_libwrap.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_list.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_md5.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_net.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_nosys.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_pthread.h Merge 10.4 into 10.5 2020-03-30 19:07:25 +03:00
my_rdtsc.h MDEV-19845: Define my_timer_cycles() inline 2019-06-28 19:19:31 +03:00
my_rnd.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_service_manager.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_stack_alloc.h perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
my_stacktrace.h Merge 10.4 into 10.5 2019-05-23 10:32:21 +03:00
my_sys.h Fixed centos 6 build failure 2020-04-08 15:31:57 +04:00
my_time.h MDEV-20432 : add MYSQL_PLUGIN_IMPORT 2019-08-29 18:33:58 +02:00
my_tree.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_uctype.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_user.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_valgrind.h MDEV-20377: Enable MemorySanitizer user-poisoning 2020-03-28 21:42:59 +02:00
my_xml.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
myisam.h Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
myisamchk.h alloc_on_stack: simplify the API 2019-08-23 22:01:39 +02:00
myisammrg.h Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
myisampack.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
mysql.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
mysql.h.pp perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysql_async.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql_com.h perfschema compilation, test and misc fixes 2020-03-10 19:24:23 +01:00
mysql_com_server.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_embed.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mysql_time.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_version.h.in Fixed that mariadb-# binaries reads their corresponding entry from my.cnf 2019-07-18 15:32:22 +03:00
mysqld_default_groups.h Fixed that mariadb-# binaries reads their corresponding entry from my.cnf 2019-07-18 15:32:22 +03:00
mysys_err.h my_pagepages: perror -> my_error 2020-04-08 14:51:14 +04:00
pack.h Merge branch '10.2' into bb-10.2-connector-c-integ-subm 2016-09-21 12:54:56 +02:00
password.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
pfs_file_provider.h perfschema compilation, test and misc fixes 2020-03-10 19:24:23 +01:00
pfs_idle_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_memory_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_metadata_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_socket_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_stage_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_statement_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_table_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_thread_provider.h P_S 5.7.28 2020-03-10 19:24:22 +01:00
pfs_transaction_provider.h cleanup: pass trxid by value 2020-03-10 19:24:23 +01:00
probes_mysql.d.base Update FSF Address 2019-05-11 21:29:06 +03:00
probes_mysql.h Update FSF Address 2019-05-11 21:29:06 +03:00
probes_mysql_nodtrace.h.in Merge branch '5.5' into 10.0 2016-02-15 22:50:59 +01:00
queues.h Misc. typos 2018-04-05 15:26:57 +04:00
rijndael.h Update FSF Address 2019-05-11 21:29:06 +03:00
service_versions.h MDEV-16678 Prefer MDL to dict_sys.latch for innodb background tasks 2019-12-10 15:42:50 +02:00
source_revision.h.in SOURCE_REVISION should always be defined in source_revision.h 2017-11-01 13:20:32 +00:00
span.h st_::span fixes 2020-03-20 21:35:42 +03:00
sql_common.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ssl_compat.h compilation fixes for new wolfssl 2020-01-20 22:35:54 +01:00
sslopt-case.h Merge 10.3 into 10.4 2019-12-13 17:30:37 +02:00
sslopt-longopts.h MDEV-14101 Provide an option to select TLS protocol version 2019-06-17 12:26:25 +02:00
sslopt-vars.h MDEV-14101 Provide an option to select TLS protocol version 2019-06-17 12:26:25 +02:00
t_ctype.h Update FSF Address 2019-05-11 21:29:06 +03:00
thr_alarm.h Update FSF Address 2019-05-11 21:29:06 +03:00
thr_lock.h MDEV-20848 Fixes for MTR test galera_sr.GCF-1060 (#1421) 2019-12-04 09:21:14 +02:00
thr_timer.h MDEV-16264 - prerequisite patch, periodic thr_timer 2019-11-15 16:50:22 +01:00
thread_pool_priv.h perfschema - various collateral cleanups and small changes 2020-03-10 19:24:22 +01:00
typelib.h MDEV-19863 Add const to TYPELIB pointers 2019-06-26 05:29:44 +04:00
violite.h perfschema socket instrumentation related changes 2020-03-10 19:24:23 +01:00
waiting_threads.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
welcome_copyright_notice.h Update FSF Address 2019-05-11 21:29:06 +03:00
wqueue.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
wsrep.h MDEV-20051: Add new mode to wsrep_OSU_method in which Galera checks storage engine of the effected table 2020-02-11 15:17:50 +02:00