Commit dec247b0 authored by marko's avatar marko

branches/zip: ha_innobase::add_index(): Clarify the comment

on orphaned tables when creating a primary key.
parent f00168af
...@@ -765,10 +765,11 @@ err_exit: ...@@ -765,10 +765,11 @@ err_exit:
ut_ad(error == DB_SUCCESS); ut_ad(error == DB_SUCCESS);
/* Commit the data dictionary transaction in order to release /* Commit the data dictionary transaction in order to release
the table locks on the system tables. Unfortunately, this the table locks on the system tables. This means that if
means that if MySQL crashes while creating a new primary key MySQL crashes while creating a new primary key inside
inside row_merge_build_indexes(), indexed_table will not be row_merge_build_indexes(), indexed_table will not be dropped
dropped on crash recovery. Thus, it will become orphaned. */ by trx_rollback_active(). It will have to be recovered or
dropped by the database administrator. */
trx_commit_for_mysql(trx); trx_commit_for_mysql(trx);
row_mysql_unlock_data_dictionary(trx); row_mysql_unlock_data_dictionary(trx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment