1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-22928 InnoDB fails to fetch index type when index mismatch happens

InnoDB fails to fetch the index type when innodb dictionary
doesn't match with frm. InnoDB should return corrupted if it
can't find the index in ha_innobase::index_type().
This commit is contained in:
Thirunarayanan Balathandayuthapani
2021-04-26 22:20:44 +05:30
parent 43e879c717
commit 2b0d5b78c2
4 changed files with 65 additions and 6 deletions

View File

@ -7537,6 +7537,7 @@ static bool mysql_inplace_alter_table(THD *thd,
goto rollback;
}
DEBUG_SYNC(thd, "alter_table_inplace_after_commit");
close_all_tables_for_name(thd, table->s,
alter_ctx->is_table_renamed() ?
HA_EXTRA_PREPARE_FOR_RENAME :