mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
branches/zip: ha_innobase::add_index(): Clarify the comment
on orphaned tables when creating a primary key.
This commit is contained in:
parent
bc66ae8cc6
commit
0333817829
1 changed files with 5 additions and 4 deletions
|
@ -765,10 +765,11 @@ err_exit:
|
|||
ut_ad(error == DB_SUCCESS);
|
||||
|
||||
/* Commit the data dictionary transaction in order to release
|
||||
the table locks on the system tables. Unfortunately, this
|
||||
means that if MySQL crashes while creating a new primary key
|
||||
inside row_merge_build_indexes(), indexed_table will not be
|
||||
dropped on crash recovery. Thus, it will become orphaned. */
|
||||
the table locks on the system tables. This means that if
|
||||
MySQL crashes while creating a new primary key inside
|
||||
row_merge_build_indexes(), indexed_table will not be dropped
|
||||
by trx_rollback_active(). It will have to be recovered or
|
||||
dropped by the database administrator. */
|
||||
trx_commit_for_mysql(trx);
|
||||
|
||||
row_mysql_unlock_data_dictionary(trx);
|
||||
|
|
Loading…
Add table
Reference in a new issue