mariadb/client
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
..
async_example.c
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h MDEV-20477 Merge binlog extended metadata support from the upstream 2019-09-11 15:09:35 +05:30
CMakeLists.txt MDEV-21303 Make executables MariaDB named 2020-03-21 20:20:29 +01:00
completion_hash.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Update FSF Address 2019-05-11 21:29:06 +03:00
mariadb-conv.cc A cleanup for MDEV-17088 Provide tools to encode/decode mysql-encoded file system names 2019-12-06 10:27:59 +04:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysql_plugin.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysql_upgrade.c Merge 10.3 into 10.4 2020-03-16 16:24:36 +02:00
mysqladmin.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysqlbinlog.cc MDEV-22214 mariadbd.exe calls function mysqld.exe, and crashes 2020-04-10 19:05:26 +02:00
mysqlcheck.c cleanup: PSI key is *always* the first argument 2020-03-10 19:24:23 +01:00
mysqldump.c cleanup: PSI key is *always* the first argument 2020-03-10 19:24:23 +01:00
mysqlimport.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysqlshow.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysqlslap.c perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
mysqltest.cc Do not compare uninitialized data 2020-03-28 21:20:29 +02:00
readline.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00