summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-29 21:46:51 +0200
committermonty@hundin.mysql.fi <>2001-11-29 21:46:51 +0200
commitce7a0a029364b688d84ef9860a39b0e89abbc001 (patch)
treeca1de5e435dc38ba3f7f3b2ae2fb610b292baef0 /sql/sql_handler.cc
parent7c3f8447c0972fce278ad92302f28af8ce2dee84 (diff)
downloadmariadb-git-ce7a0a029364b688d84ef9860a39b0e89abbc001.tar.gz
Fix not critical MyISAM bug in locking.
Free character sets properly (for embedded). Add missing mutex in HANDLER CLOSE
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index c7fb237ccf2..46cbe5e44d3 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -63,7 +63,11 @@ int mysql_ha_close(THD *thd, TABLE_LIST *tables)
TABLE **ptr=find_table_ptr_by_name(thd, tables->db, tables->name);
if (*ptr)
+ {
+ VOID(pthread_mutex_lock(&LOCK_open));
close_thread_table(thd, ptr);
+ VOID(pthread_mutex_unlock(&LOCK_open));
+ }
send_ok(&thd->net);
return 0;