summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2017-03-20 11:55:24 +0100
committerKristian Nielsen <knielsen@knielsen-hq.org>2017-04-21 10:30:15 +0200
commit363d6a16ae3469496e9f17eab168c5b14fad7203 (patch)
tree3b6699d8baf03d77b0094f1387cf66da11a1eb1b /sql/set_var.h
parent6a84473c28af10e072267bc811f280a49bdc8ca8 (diff)
downloadmariadb-git-363d6a16ae3469496e9f17eab168c5b14fad7203.tar.gz
MDEV-12179: Per-engine mysql.gtid_slave_pos table
Intermediate commit. Implement a --gtid-pos-auto-engines system variable. The variable is a list of engines for which mysql.gtid_slave_pos_ENGINE should be auto-created if needed. This commit only implements the option variable. It is not yet used to actually auto-create any tables, nor is there a corresponding command-line version of the option yet.
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 97dc3b5ba51..a6f0cb02fe8 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -286,6 +286,7 @@ public:
longlong longlong_value; ///< for signed integer
double double_value; ///< for Sys_var_double
plugin_ref plugin; ///< for Sys_var_plugin
+ plugin_ref *plugins; ///< for Sys_var_pluginlist
Time_zone *time_zone; ///< for Sys_var_tz
LEX_STRING string_value; ///< for Sys_var_charptr and others
const void *ptr; ///< for Sys_var_struct
@@ -422,6 +423,10 @@ int sys_var_init();
uint sys_var_elements();
int sys_var_add_options(DYNAMIC_ARRAY *long_options, int parse_flags);
void sys_var_end(void);
+plugin_ref *resolve_engine_list(const char *str_arg, size_t str_arg_len);
+void free_engine_list(plugin_ref *list);
+plugin_ref *copy_engine_list(plugin_ref *list);
+char *pretty_print_engine_list(THD *thd, plugin_ref *list);
#endif