From 8c65e887a02b4535f5820496b316bd7c96ceff9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 21 Apr 2010 13:00:29 +0300 Subject: [PATCH] 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. --- storage/innodb_plugin/handler/handler0alter.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage/innodb_plugin/handler/handler0alter.cc b/storage/innodb_plugin/handler/handler0alter.cc index 9836fb11ebc..e474c318c58 100644 --- a/storage/innodb_plugin/handler/handler0alter.cc +++ b/storage/innodb_plugin/handler/handler0alter.cc @@ -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); }