mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
branches/zip: ha_innobase::add_index(): When creating the primary key
and the table is being locked by another transaction, do not attempt to drop the table. (Bug #48782) Approved by Sunny Bains over IM
This commit is contained in:
parent
e164b4201a
commit
906238598d
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-11-18 The InnoDB Team
|
||||
|
||||
* handler/handler0alter.cc:
|
||||
Fix Bug#48782 On lock wait timeout, CREATE INDEX (creating primary key)
|
||||
attempts DROP TABLE
|
||||
|
||||
2009-11-17 The InnoDB Team
|
||||
|
||||
* handler/ha_innodb.cc, mysql-test/innodb.result,
|
||||
|
|
|
@ -882,7 +882,9 @@ error:
|
|||
/* fall through */
|
||||
default:
|
||||
if (new_primary) {
|
||||
row_merge_drop_table(trx, indexed_table);
|
||||
if (indexed_table != innodb_table) {
|
||||
row_merge_drop_table(trx, indexed_table);
|
||||
}
|
||||
} else {
|
||||
if (!dict_locked) {
|
||||
row_mysql_lock_data_dictionary(trx);
|
||||
|
|
Loading…
Reference in a new issue