1
0
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:
serg@serg.mysql.com
2001-05-24 13:14:25 +02:00
parent f2dee22a7f
commit c3039e8005
6 changed files with 35 additions and 12 deletions

View File

@ -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;
}
}