summaryrefslogtreecommitdiff
path: root/sql/sql_servers.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-12-02 18:22:15 +0300
committerKonstantin Osipov <kostja@sun.com>2009-12-02 18:22:15 +0300
commitbcae0d9bab24165bc58090187ba0a51babe0e8ac (patch)
treee25111d23124912ae062b22e9503051a57bb23c3 /sql/sql_servers.cc
parentcf4a4ba6fdce6e37c0a97bcf9b6653456a5ff374 (diff)
downloadmariadb-git-bcae0d9bab24165bc58090187ba0a51babe0e8ac.tar.gz
Backport of:
---------------------------------------------------------- revno: 2630.10.1 committer: Konstantin Osipov <konstantin@mysql.com> branch nick: mysql-6.0-lock-tables-tidyup timestamp: Wed 2008-06-11 15:49:58 +0400 message: WL#3726, review fixes. Now that we have metadata locks, we don't need to keep a crippled TABLE instance in the table cache to indicate that a table is locked. Remove all code that used this technique. Instead, rely on metadata locks and use the standard open_table() and close_thread_table() to manipulate with the table cache tables. Removes a list of functions that have become unused (see the comment for sql_base.cc for details). Under LOCK TABLES, keep a TABLE_LIST instance for each table that may be temporarily closed. For that, implement an own class for LOCK TABLES mode, Locked_tables_list. This is a pre-requisite patch for WL#4144. This is not exactly a backport: there is no new online ALTER table in Celosia, so the old alter table code was changed to work with the new table cache API.
Diffstat (limited to 'sql/sql_servers.cc')
-rw-r--r--sql/sql_servers.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_servers.cc b/sql/sql_servers.cc
index 5251a50cab9..6d25b0c2b59 100644
--- a/sql/sql_servers.cc
+++ b/sql/sql_servers.cc
@@ -224,7 +224,8 @@ bool servers_reload(THD *thd)
bool return_val= TRUE;
DBUG_ENTER("servers_reload");
- unlock_locked_tables(thd); // Can't have locked tables here
+ /* Can't have locked tables here */
+ thd->locked_tables_list.unlock_locked_tables(thd);
DBUG_PRINT("info", ("locking servers_cache"));
rw_wrlock(&THR_LOCK_servers);