1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +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:
Marko Mäkelä
2010-04-21 13:00:29 +03:00
parent 8c828e3afd
commit 8c65e887a0

View File

@ -920,9 +920,8 @@ convert_error:
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);
}