diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-03-22 08:11:37 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-03-22 08:11:37 +0100 |
commit | f1f9c4e4e580a7b060b0c9457afc2eaf7ad3e02d (patch) | |
tree | 2df02befed23377b3e91511b74295341a143fffc /sql/rpl_gtid.cc | |
parent | b6b84d68250ea13a1a90079120e303658465bfb7 (diff) | |
download | mariadb-git-f1f9c4e4e580a7b060b0c9457afc2eaf7ad3e02d.tar.gz |
MDEV-26: Global transaction ID.
Fix 3 small issues reported by Pavel Ivanov.
Diffstat (limited to 'sql/rpl_gtid.cc')
-rw-r--r-- | sql/rpl_gtid.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/rpl_gtid.cc b/sql/rpl_gtid.cc index 7f5aa0b780b..6f45c4daf5c 100644 --- a/sql/rpl_gtid.cc +++ b/sql/rpl_gtid.cc @@ -295,6 +295,7 @@ rpl_slave_state::record_gtid(THD *thd, const rpl_gtid *gtid, uint64 sub_id, list_element *elist= 0, *next; element *elem; ulonglong thd_saved_option= thd->variables.option_bits; + Query_tables_list lex_backup; mysql_reset_thd_for_next_command(thd, 0); @@ -304,6 +305,7 @@ rpl_slave_state::record_gtid(THD *thd, const rpl_gtid *gtid, uint64 sub_id, return 1; } ); + thd->lex->reset_n_backup_query_tables_list(&lex_backup); tlist.init_one_table(STRING_WITH_LEN("mysql"), rpl_gtid_slave_state_table_name.str, rpl_gtid_slave_state_table_name.length, @@ -393,6 +395,7 @@ end: else thd->mdl_context.release_transactional_locks(); } + thd->lex->restore_backup_query_tables_list(&lex_backup); thd->variables.option_bits= thd_saved_option; return err; } |