summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
authormonty@tik.mysql.fi <>2002-03-21 23:06:48 +0200
committermonty@tik.mysql.fi <>2002-03-21 23:06:48 +0200
commitee162d86a676a718cc7696c769f2402072f95e8d (patch)
tree63e54a056bcd09390054202f9c5fad2985ab8f2d /sql/lock.cc
parent288f81ce0745ac61f91fc219003081d2f1816c26 (diff)
downloadmariadb-git-ee162d86a676a718cc7696c769f2402072f95e8d.tar.gz
Quote names to SHOW CREATE for mysqldump
Fix thread-related bug when doing DROP TABLE Fix bug in RENAME TABLE on windows
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index aa06822e03f..a9054b99186 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -108,6 +108,13 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd,TABLE **tables,uint count)
thd->locked=0;
break;
}
+ else if (!thd->open_tables)
+ {
+ // Only using temporary tables, no need to unlock
+ thd->some_tables_deleted=0;
+ thd->locked=0;
+ break;
+ }
/* some table was altered or deleted. reopen tables marked deleted */
mysql_unlock_tables(thd,sql_lock);