mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 08:34:28 +02:00
close_open_tables() is not meaningful anymore
This commit is contained in:
parent
1c68b9e9a4
commit
47a7c314ca
1 changed files with 2 additions and 19 deletions
|
|
@ -792,23 +792,6 @@ static void mark_used_tables_as_free_for_reuse(THD *thd, TABLE *table)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
Auxiliary function to close all tables in the open_tables list.
|
||||
|
||||
@param thd Thread context.
|
||||
|
||||
@remark It should not ordinarily be called directly.
|
||||
*/
|
||||
|
||||
static void close_open_tables(THD *thd)
|
||||
{
|
||||
DBUG_PRINT("info", ("thd->open_tables: 0x%lx", (long) thd->open_tables));
|
||||
|
||||
while (thd->open_tables)
|
||||
(void) close_thread_table(thd, &thd->open_tables);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Close all open instances of the table but keep the MDL lock.
|
||||
|
||||
|
|
@ -1028,8 +1011,8 @@ void close_thread_tables(THD *thd)
|
|||
Closing a MERGE child before the parent would be fatal if the
|
||||
other thread tries to abort the MERGE lock in between.
|
||||
*/
|
||||
if (thd->open_tables)
|
||||
close_open_tables(thd);
|
||||
while (thd->open_tables)
|
||||
(void) close_thread_table(thd, &thd->open_tables);
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue