Skip to content

Conversation

@Thirunarayanan
Copy link
Member

dict_table_t::parse_tbl_name() : Extracts database and table components from full table names

ddl_log_acquire_mdl(): Does take MDL on given table

  • DELETE/REPLACE: single table MDL acquisition
  • RENAME: source and destination table MDL protection
  • ALTER: comprehensive MDL on original, intermediate and final tables
  • EXCHANGE: primary, source, and temporary table MDL coverage

MDL acquistion on temporary tables in mysql_alter_table(), crash recovery for DDL log entry.

innodb_mdl_acquire() for temporary tables in
commit_inplace_alter_table()

innodb_mdl_check() to check MDL ownership verifiction in rename_table() and delete_table(). In innodb_rename_table(), it does check for source and destination table MDL check

  • InnoDB purge thread now takes MDL on table name directly instead of relying on mdl_name

@Thirunarayanan Thirunarayanan requested a review from dr-m January 16, 2026 11:33
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Thirunarayanan Thirunarayanan force-pushed the main-MDEV-36493 branch 2 times, most recently from 28474f4 to 3052ca6 Compare January 16, 2026 16:45
dict_table_t::parse_tbl_name() : Extracts database and table
components from full table names

ddl_log_acquire_mdl(): Does take MDL on given table
  - DELETE/REPLACE: single table MDL acquisition
  - RENAME: source and destination table MDL protection
  - ALTER: comprehensive MDL on original, intermediate
    and final tables
  - EXCHANGE: primary, source, and temporary table MDL coverage

MDL acquistion on temporary tables in mysql_alter_table(),
crash recovery for DDL log entry.

innodb_mdl_acquire() for temporary tables in
commit_inplace_alter_table()

innodb_mdl_check() to check MDL ownership verifiction in
rename_table() and delete_table(). In innodb_rename_table(),
it does check for source and destination table MDL check

- InnoDB purge thread now takes MDL on table name directly
instead of relying on mdl_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants