mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
plugin versioning: we cannot assume that sizeof(st_mysql_plugin)
is the same in the plugin and in the mysqld. store the size in the plugin. To simplify access to plugin's st_mysql_plugin, copy it on open and convert to the latest version, so that the rest of the code would not need to care about versions. include/plugin.h: plugin versioning: we cannot assume that sizeof(st_mysql_plugin) is the same in the plugin and in the mysqld. store the size in the plugin.
This commit is contained in:
@ -39,6 +39,7 @@
|
||||
|
||||
#define mysql_declare_plugin \
|
||||
int _mysql_plugin_interface_version_= MYSQL_PLUGIN_INTERFACE_VERSION; \
|
||||
int _mysql_sizeof_struct_st_plugin_= sizeof(struct st_mysql_plugin); \
|
||||
struct st_mysql_plugin _mysql_plugin_declarations_[]= {
|
||||
#define mysql_declare_plugin_end ,{0,0,0,0,0,0,0}}
|
||||
|
||||
|
Reference in New Issue
Block a user