mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Removed kill_delayed_threads_for_table()
After 7fb9d64
it is used only by ALTER/DROP SERVER, which most probably
wasn't intentional as Federated never supported delayed inserts anyway.
If delayed inserts will ever become an issue with ALTER/DROP SERVER, we
should kill them by acquiring X-lock instead.
Part of MDEV-17882 - Cleanup refresh version
This commit is contained in:
@ -2470,8 +2470,8 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
|
||||
table->table= 0;
|
||||
}
|
||||
else
|
||||
tdc_remove_table(thd, TDC_RT_REMOVE_ALL, table->db.str, table->table_name.str,
|
||||
false);
|
||||
tdc_remove_table(thd, TDC_RT_REMOVE_ALL, table->db.str,
|
||||
table->table_name.str);
|
||||
|
||||
/* Check that we have an exclusive lock on the table to be dropped. */
|
||||
DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::TABLE, table->db.str,
|
||||
@ -7626,8 +7626,7 @@ static bool mysql_inplace_alter_table(THD *thd,
|
||||
goto cleanup;
|
||||
|
||||
tdc_remove_table(thd, TDC_RT_REMOVE_NOT_OWN_KEEP_SHARE,
|
||||
table->s->db.str, table->s->table_name.str,
|
||||
false);
|
||||
table->s->db.str, table->s->table_name.str);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -7821,7 +7820,7 @@ static bool mysql_inplace_alter_table(THD *thd,
|
||||
{
|
||||
// Remove TABLE and TABLE_SHARE for old name from TDC.
|
||||
tdc_remove_table(thd, TDC_RT_REMOVE_ALL,
|
||||
alter_ctx->db.str, alter_ctx->table_name.str, false);
|
||||
alter_ctx->db.str, alter_ctx->table_name.str);
|
||||
|
||||
if (mysql_rename_table(db_type, &alter_ctx->db, &alter_ctx->table_name,
|
||||
&alter_ctx->new_db, &alter_ctx->new_alias, 0))
|
||||
|
Reference in New Issue
Block a user