Commit aa3a0fcb authored by Marko Mäkelä's avatar Marko Mäkelä

ha_innobase::add_index(): Only check for duplicate indexes

when the data dictionary is locked.
This fixes a UNIV_DEBUG assertion failure in innodb-index.test.
parent 6a4919d8
......@@ -920,9 +920,8 @@ ha_innobase::add_index(
trx_commit_for_mysql(prebuilt->trx);
}
ut_d(dict_table_check_for_dup_indexes(innodb_table, FALSE));
if (dict_locked) {
ut_d(dict_table_check_for_dup_indexes(innodb_table, FALSE));
row_mysql_unlock_data_dictionary(trx);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment