Enable instant ADD COLUMN
We must split the creation of table or index metadata from the creation of the dictionary table records and the creation of the data. In this way, we can transform a table-rebuilding operation into an instant ADD COLUMN operation. Dictionary objects will only be added to cache when table rebuilding or index creation is needed. The ctx->instant_table will never be added to cache. innodb_update_n_cols(): Renamed from innobase_update_n_virtual(). Call my_error() if an error occurs. innobase_add_instant_try(): Call my_error() if an error occurs. create_index_dict(): Replaces row_merge_create_index_graph(). prepare_inplace_alter_table_dict(): First create the ctx->new_table, and only then decide if the table really needs to be rebuilt.
Showing
This diff is collapsed.
Please register or sign in to comment