summaryrefslogtreecommitdiff
path: root/storage/innobase/dict
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-01-08 14:24:04 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-01-08 14:26:55 +0200
commitc903ba2f1ef5564d0eafd2803342f11cecb9bf01 (patch)
tree60961c3ec6e73e5e678980c8777e9227b37f59e3 /storage/innobase/dict
parent4496fd71f47e340b60e90d8f99987d36013b7927 (diff)
downloadmariadb-git-c903ba2f1ef5564d0eafd2803342f11cecb9bf01.tar.gz
MDEV-13205 InnoDB: Failing assertion: !dict_index_is_online_ddl(index) upon ALTER TABLE
dict_foreign_find_index(): Ignore incompletely created indexes. After a failed ADD UNIQUE INDEX, an incompletely created index could be left behind until the next ALTER TABLE statement.
Diffstat (limited to 'storage/innobase/dict')
-rw-r--r--storage/innobase/dict/dict0dict.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/dict/dict0dict.cc b/storage/innobase/dict/dict0dict.cc
index 11a4b892397..0c8a278586d 100644
--- a/storage/innobase/dict/dict0dict.cc
+++ b/storage/innobase/dict/dict0dict.cc
@@ -3364,6 +3364,7 @@ dict_foreign_find_index(
if (types_idx != index
&& !(index->type & DICT_FTS)
&& !index->to_be_dropped
+ && !dict_index_is_online_ddl(index)
&& dict_foreign_qualify_index(
table, col_names, columns, n_cols,
index, types_idx,