1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

BUG#5625 - MyISAM Index corruption on ALTER TABLE x ENABLE KEYS due to full tmpdir.

Added a try to a normal repair() if repair_by_sort() failed.
This was not done with ENABLE KEYS and OPTIMIZE TABLE.
Fixed error code handling in mysql_alter_table().
This commit is contained in:
ingo@mysql.com
2004-10-14 20:02:56 +02:00
parent 7ce60487d9
commit 150ab94e0a
2 changed files with 17 additions and 3 deletions

View File

@@ -1614,7 +1614,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
VOID(pthread_mutex_lock(&LOCK_open));
wait_while_table_is_used(thd, table, HA_EXTRA_FORCE_REOPEN);
VOID(pthread_mutex_unlock(&LOCK_open));
error= table->file->activate_all_index(thd);
error= (table->file->activate_all_index(thd) ? -1 : 0);
/* COND_refresh will be signaled in close_thread_tables() */
break;
case DISABLE: