diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2017-03-20 11:55:24 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2017-04-21 10:30:15 +0200 |
commit | 363d6a16ae3469496e9f17eab168c5b14fad7203 (patch) | |
tree | 3b6699d8baf03d77b0094f1387cf66da11a1eb1b /sql/sql_plugin.cc | |
parent | 6a84473c28af10e072267bc811f280a49bdc8ca8 (diff) | |
download | mariadb-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.cc | 6 |
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; |