mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge next-mr -> next-4284.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 2000-2004 MySQL AB
|
||||
/* Copyright (C) 2000-2004 MySQL AB, 2008-2009 Sun Microsystems, Inc
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License.
|
||||
@ -123,13 +124,13 @@ static void mysql_ha_close_table(THD *thd, TABLE_LIST *tables)
|
||||
{
|
||||
/* Non temporary table. */
|
||||
tables->table->file->ha_index_or_rnd_end();
|
||||
pthread_mutex_lock(&LOCK_open);
|
||||
mysql_mutex_lock(&LOCK_open);
|
||||
if (close_thread_table(thd, &tables->table))
|
||||
{
|
||||
/* Tell threads waiting for refresh that something has happened */
|
||||
broadcast_refresh();
|
||||
}
|
||||
pthread_mutex_unlock(&LOCK_open);
|
||||
mysql_mutex_unlock(&LOCK_open);
|
||||
thd->mdl_context.release_lock(tables->mdl_request.ticket);
|
||||
}
|
||||
else if (tables->table)
|
||||
@ -774,7 +775,7 @@ void mysql_ha_flush(THD *thd)
|
||||
TABLE_LIST *hash_tables;
|
||||
DBUG_ENTER("mysql_ha_flush");
|
||||
|
||||
safe_mutex_assert_not_owner(&LOCK_open);
|
||||
mysql_mutex_assert_not_owner(&LOCK_open);
|
||||
|
||||
/*
|
||||
Don't try to flush open HANDLERs when we're working with
|
||||
|
Reference in New Issue
Block a user