diff options
author | Monty <monty@mariadb.org> | 2015-02-01 15:24:22 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-02-01 15:24:22 +0200 |
commit | 0ee879ff8ac1b80cd9a963015344f5698a81f309 (patch) | |
tree | c787536b279abd6fce40f8f624af2593ddf83403 /include/mysql/plugin.h | |
parent | 67b24a2374fed4a7533d14cc443afa0f4e9febc7 (diff) | |
download | mariadb-git-0ee879ff8ac1b80cd9a963015344f5698a81f309.tar.gz |
Improve performance for calculating memory allocation
Extend interface for 'show variables' with current scope
Diffstat (limited to 'include/mysql/plugin.h')
-rw-r--r-- | include/mysql/plugin.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h index 16b0c6edc1f..640dc0725cc 100644 --- a/include/mysql/plugin.h +++ b/include/mysql/plugin.h @@ -182,6 +182,11 @@ enum enum_mysql_show_type #define SHOW_LONG SHOW_ULONG #define SHOW_LONGLONG SHOW_ULONGLONG +enum enum_var_type +{ + SHOW_OPT_DEFAULT= 0, SHOW_OPT_SESSION, SHOW_OPT_GLOBAL +}; + struct st_mysql_show_var { const char *name; char *value; @@ -189,7 +194,7 @@ struct st_mysql_show_var { }; #define SHOW_VAR_FUNC_BUFF_SIZE (256 * sizeof(void*)) -typedef int (*mysql_show_var_func)(MYSQL_THD, struct st_mysql_show_var*, char *); +typedef int (*mysql_show_var_func)(MYSQL_THD, struct st_mysql_show_var*, char *, enum enum_var_type); /* |