summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-04-26 22:20:44 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-04-27 16:47:17 +0530
commit2b0d5b78c2bbe2bdd763a8e2ed12be644bd705d2 (patch)
tree9d3f3abc7943a508ed69893d4f41ea24919ba115 /sql/sql_table.cc
parent43e879c717952fa84e2914609a13b8f05da2daba (diff)
downloadmariadb-git-2b0d5b78c2bbe2bdd763a8e2ed12be644bd705d2.tar.gz
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().
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 07762e64259..2b26af6e9ba 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -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 :