1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Plugin API: increase SHOW_VAR_FUNC_BUFF_SIZE for 64-bit CPUs

instead of having it 1K everywhere, make it 1K on 32-bit and 2K on 64-bit.
As the latter has larger pointers (and larger sizeof(SHOW_VAR),
it needs a larger buffer to store the same amount of SHOW_VARs
This commit is contained in:
Sergei Golubchik
2014-10-08 18:49:34 +02:00
parent 03ec3511a8
commit 3d9aa6c467
4 changed files with 8 additions and 8 deletions

View File

@ -75,7 +75,7 @@ typedef struct st_mysql_xid MYSQL_XID;
#define MYSQL_PLUGIN_INTERFACE_VERSION 0x0104
/* MariaDB plugin interface version */
#define MARIA_PLUGIN_INTERFACE_VERSION 0x0109
#define MARIA_PLUGIN_INTERFACE_VERSION 0x010a
/*
The allowable types of plugins
@ -186,7 +186,7 @@ struct st_mysql_show_var {
enum enum_mysql_show_type type;
};
#define SHOW_VAR_FUNC_BUFF_SIZE 1024
#define SHOW_VAR_FUNC_BUFF_SIZE (256 * sizeof(void*))
typedef int (*mysql_show_var_func)(MYSQL_THD, struct st_mysql_show_var*, char *);