mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
ALTER TABLE ... DISABLE/ENABLE KEYS, code cleanup
This commit is contained in:
@ -1189,9 +1189,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
|
||||
switch (keys_onoff)
|
||||
{
|
||||
case LEAVE_AS_IS: break;
|
||||
case ENABLE: error=table->file->activate_all_index(thd); break;
|
||||
case ENABLE:
|
||||
error=table->file->activate_all_index(thd);
|
||||
break;
|
||||
case DISABLE:
|
||||
table->file->deactivate_non_unique_index(table->file->records);
|
||||
table->file->deactivate_non_unique_index(HA_POS_ERROR);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user