diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2017-04-23 10:49:58 +0200 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2017-04-23 10:49:58 +0200 |
commit | 89aad233de9371476d9424c7df72d66c37c23e8a (patch) | |
tree | 2da90384958f5b625f7ef401f73a1dcd5f63af5c /sql/rpl_mi.h | |
parent | 1af3165f98b7f8122af1649babc790e844a660df (diff) | |
download | mariadb-git-89aad233de9371476d9424c7df72d66c37c23e8a.tar.gz |
MDEV-12179: Per-engine mysql.gtid_slave_pos table
Intermediate commit.
Move the discovery of mysql.gtid_slave_pos* tables into the SQL thread.
This avoids doing things like opening tables and scanning the mysql
schema for tables inside of the START SLAVE statement, which might
interact badly with existing transaction or table locks.
(Even though START SLAVE is documented to implicitly commit any active
transactions, this appears not to be the case in current code).
Table discovery fits naturally in the SQL thread init code, next to
the loading of mysql.gtid_slave_pos state.
Diffstat (limited to 'sql/rpl_mi.h')
-rw-r--r-- | sql/rpl_mi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/rpl_mi.h b/sql/rpl_mi.h index 31c0f280ac1..104a7ce3da6 100644 --- a/sql/rpl_mi.h +++ b/sql/rpl_mi.h @@ -377,7 +377,7 @@ void create_logfile_name_with_suffix(char *res_file_name, size_t length, uchar *get_key_master_info(Master_info *mi, size_t *length, my_bool not_used __attribute__((unused))); void free_key_master_info(Master_info *mi); -uint any_slave_sql_running(); +uint any_slave_sql_running(bool already_locked); bool give_error_if_slave_running(bool already_lock); #endif /* HAVE_REPLICATION */ |