summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
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/sql_plugin.cc
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/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index 101ea3fd3c7..45d78c525fe 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -1922,6 +1922,12 @@ void plugin_shutdown(void)
if (initialized)
{
+ if (opt_gtid_pos_auto_plugins)
+ {
+ free_engine_list(opt_gtid_pos_auto_plugins);
+ opt_gtid_pos_auto_plugins= NULL;
+ }
+
mysql_mutex_lock(&LOCK_plugin);
reap_needed= true;