mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35044 ALTER on a table with vector index attempts to bypass unsupported locking limitation, server crashes in THD::free_tmp_table_share
open secondary tables early enough for the cleanup on error to see them and remove their underlying files
This commit is contained in:
@@ -11575,7 +11575,7 @@ alter_copy:
|
||||
new_table= thd->create_and_open_tmp_table(&frm, alter_ctx.get_tmp_path(),
|
||||
alter_ctx.new_db,
|
||||
alter_ctx.new_name, true);
|
||||
if (!new_table)
|
||||
if (!new_table || new_table->open_hlindexes_for_write())
|
||||
goto err_new_table_cleanup;
|
||||
|
||||
if (table->s->tmp_table != NO_TMP_TABLE)
|
||||
|
Reference in New Issue
Block a user