mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Simplified quick_rm_table() and mysql_rename_table()
Replaced obscure FRM_ONLY, NO_FRM_RENAME, NO_HA_TABLE, NO_PAR_TABLE with straightforward explicit flags: QRMT_FRM - [re]moves .frm QRMT_PAR - [re]moves .par QRMT_HANDLER - calls ha_delete_table()/ha_rename_table() and [re]moves high-level indexes QRMT_DEFAULT - same as QRMT_FRM | QRMT_HANDLER, which is regular table drop/rename.
This commit is contained in:
committed by
Sergei Golubchik
parent
ca17b68bb6
commit
3283688797
@ -4765,7 +4765,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List<Item> *items,
|
||||
{
|
||||
quick_rm_table(thd, create_info->db_type, &table_list->db,
|
||||
table_case_name(create_info, &table_list->table_name),
|
||||
0);
|
||||
QRMT_DEFAULT);
|
||||
}
|
||||
/* Restore */
|
||||
table_list->open_strategy= save_open_strategy;
|
||||
|
Reference in New Issue
Block a user