From 3d19fdad34c5fa23ac800a0b4819325ee66d8bd4 Mon Sep 17 00:00:00 2001 From: Konstantin Osipov Date: Tue, 1 Dec 2009 01:01:27 +0300 Subject: Backport of: ------------------------------------------------------------ revno: 2630.4.14 committer: Dmitry Lenev branch nick: mysql-6.0-3726-w timestamp: Wed 2008-05-28 12:16:03 +0400 message: WL#3726 "DDL locking for all metadata objects". After review fixes in progress. Removed unused code and adjusted names of functions/methods to better reflect their current function. --- sql/sql_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_handler.cc') diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 5c034a0452a..6087b0b7700 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -801,7 +801,7 @@ void mysql_ha_flush(THD *thd) if (hash_tables->table && (hash_tables->table->mdl_lock && mdl_has_pending_conflicting_lock(hash_tables->table->mdl_lock) || - hash_tables->table->needs_reopen_or_name_lock())) + hash_tables->table->needs_reopen())) mysql_ha_close_table(thd, hash_tables); } -- cgit v1.2.1