summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-04 13:23:13 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-04 13:23:13 +0200
commit55e07d9ade51e9e969f528d903509806142f4d1e (patch)
tree7261b1dc07a0b7a5467e8ec22d676c48ae9324dd /sql/sql_class.cc
parent0333ddd3ec003225384507f30e65517d99c494b7 (diff)
parent2f70784c2aff3bcf67f89f4d8cd121e8f8c3355f (diff)
downloadmariadb-git-55e07d9ade51e9e969f528d903509806142f4d1e.tar.gz
Merge branch '10.8' into 10.9
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 7065e507c65..14f93241ce3 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -452,6 +452,7 @@ void thd_storage_lock_wait(THD *thd, long long value)
extern "C"
void *thd_get_ha_data(const THD *thd, const struct handlerton *hton)
{
+ DBUG_ASSERT(thd == current_thd || mysql_mutex_is_owner(&thd->LOCK_thd_data));
return thd->ha_data[hton->slot].ha_ptr;
}
@@ -1523,6 +1524,8 @@ void THD::cleanup(void)
wsrep_client_thread= false;
#endif /* WITH_WSREP */
+ DEBUG_SYNC(this, "THD_cleanup_after_set_killed");
+
mysql_ha_cleanup(this);
locked_tables_list.unlock_locked_tables(this);
@@ -3937,6 +3940,7 @@ Statement::Statement(LEX *lex_arg, MEM_ROOT *mem_root_arg,
lex(lex_arg),
db(null_clex_str)
{
+ hr_prepare_time.val= 0,
name= null_clex_str;
}
@@ -3953,6 +3957,7 @@ void Statement::set_statement(Statement *stmt)
column_usage= stmt->column_usage;
lex= stmt->lex;
query_string= stmt->query_string;
+ hr_prepare_time= stmt->hr_prepare_time;
}
@@ -7405,7 +7410,7 @@ bool THD::binlog_for_noop_dml(bool transactional_table)
}
-#if !defined(DBUG_OFF) && !defined(_lint)
+#if defined(DBUG_TRACE) && !defined(_lint)
static const char *
show_query_type(THD::enum_binlog_query_type qtype)
{