summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc28
1 files changed, 6 insertions, 22 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 4b6e4bce3c0..e7324de4ed2 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -37,7 +37,7 @@
#include "tztime.h" // MYSQL_TIME <-> my_time_t
#include "sql_acl.h" // NO_ACCESS,
// acl_getroot_no_password
-#include "sql_base.h" // close_temporary_tables
+#include "sql_base.h"
#include "sql_handler.h" // mysql_ha_cleanup
#include "rpl_rli.h"
#include "rpl_filter.h"
@@ -883,7 +883,8 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
main_da(0, false, false),
m_stmt_da(&main_da),
tdc_hash_pins(0),
- xid_hash_pins(0)
+ xid_hash_pins(0),
+ m_tmp_tables_locked(false)
#ifdef WITH_WSREP
,
wsrep_applier(is_wsrep_applier),
@@ -1586,7 +1587,7 @@ void THD::cleanup(void)
locked_tables_list.unlock_locked_tables(this);
delete_dynamic(&user_var_events);
- close_temporary_tables(this);
+ close_temporary_tables();
transaction.xid_state.xa_state= XA_NOTR;
trans_rollback(this);
@@ -4319,7 +4320,8 @@ void THD::restore_backup_open_tables_state(Open_tables_backup *backup)
Before we will throw away current open tables state we want
to be sure that it was properly cleaned up.
*/
- DBUG_ASSERT(open_tables == 0 && temporary_tables == 0 &&
+ DBUG_ASSERT(open_tables == 0 &&
+ temporary_tables == 0 &&
derived_tables == 0 &&
lock == 0 &&
locked_tables_mode == LTM_NONE &&
@@ -6982,24 +6984,6 @@ THD::signal_wakeup_ready()
}
-void THD::rgi_lock_temporary_tables()
-{
- mysql_mutex_lock(&rgi_slave->rli->data_lock);
- temporary_tables= rgi_slave->rli->save_temporary_tables;
-}
-
-void THD::rgi_unlock_temporary_tables()
-{
- rgi_slave->rli->save_temporary_tables= temporary_tables;
- mysql_mutex_unlock(&rgi_slave->rli->data_lock);
-}
-
-bool THD::rgi_have_temporary_tables()
-{
- return rgi_slave->rli->save_temporary_tables != 0;
-}
-
-
void
wait_for_commit::reinit()
{