mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Alter online table x (no options) possible
This no-op of an operations should be able to occur without locks and occur online.
This commit is contained in:
@ -8431,6 +8431,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
|
||||
THD_STAGE_INFO(thd, stage_setup);
|
||||
if (!(alter_info->flags & ~(Alter_info::ALTER_RENAME |
|
||||
Alter_info::ALTER_KEYS_ONOFF)) &&
|
||||
alter_info->flags != 0 &&
|
||||
alter_info->requested_algorithm !=
|
||||
Alter_info::ALTER_TABLE_ALGORITHM_COPY &&
|
||||
!table->s->tmp_table) // no need to touch frm
|
||||
@ -8449,7 +8450,8 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
|
||||
DBUG_RETURN(res);
|
||||
}
|
||||
|
||||
handle_if_exists_options(thd, table, alter_info);
|
||||
if (alter_info->flags != 0)
|
||||
handle_if_exists_options(thd, table, alter_info);
|
||||
|
||||
/*
|
||||
Look if we have to do anything at all.
|
||||
|
Reference in New Issue
Block a user