summaryrefslogtreecommitdiff
path: root/sql/lock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index c85983b65d6..915f1831245 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -446,7 +446,10 @@ int lock_table_name(THD *thd, TABLE_LIST *table_list)
void unlock_table_name(THD *thd, TABLE_LIST *table_list)
{
if (table_list->table)
+ {
hash_delete(&open_cache, (byte*) table_list->table);
+ (void) pthread_cond_broadcast(&COND_refresh);
+ }
}
static bool locked_named_table(THD *thd, TABLE_LIST *table_list)