mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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.
This commit is contained in:
@@ -920,9 +920,8 @@ convert_error:
|
|||||||
trx_commit_for_mysql(prebuilt->trx);
|
trx_commit_for_mysql(prebuilt->trx);
|
||||||
}
|
}
|
||||||
|
|
||||||
ut_d(dict_table_check_for_dup_indexes(innodb_table, FALSE));
|
|
||||||
|
|
||||||
if (dict_locked) {
|
if (dict_locked) {
|
||||||
|
ut_d(dict_table_check_for_dup_indexes(innodb_table, FALSE));
|
||||||
row_mysql_unlock_data_dictionary(trx);
|
row_mysql_unlock_data_dictionary(trx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user