diff options
author | unknown <monty@mashka.mysql.fi> | 2003-07-08 23:58:04 +0300 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-07-08 23:58:04 +0300 |
commit | e13e857cae1ecaa322a0b4dec76e5b5dfb4f53a0 (patch) | |
tree | 469e4c68e8c5de015364504f40b14cec7177b355 /myisam/mi_extra.c | |
parent | 4c2d3b05547e137cf80f7b983d33927c6072799b (diff) | |
download | mariadb-git-e13e857cae1ecaa322a0b4dec76e5b5dfb4f53a0.tar.gz |
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
Removed double my_thread_end() which caused fatal error on windows if mysqld died on startup
myisam/mi_extra.c:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
mysql-test/r/alter_table.result:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
mysql-test/t/alter_table.test:
Test DISABLE/ENABLE KEY
sql/ha_myisam.cc:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
sql/mysqld.cc:
Removed double my_thread_end() which caused fatal error on windows if mysqld died on startup
sql/sql_table.cc:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
sql/table.cc:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
sql/table.h:
Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS
Diffstat (limited to 'myisam/mi_extra.c')
-rw-r--r-- | myisam/mi_extra.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/myisam/mi_extra.c b/myisam/mi_extra.c index 75057dd4e6a..ef82a6ef61f 100644 --- a/myisam/mi_extra.c +++ b/myisam/mi_extra.c @@ -273,6 +273,10 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg) } break; case HA_EXTRA_FORCE_REOPEN: + pthread_mutex_lock(&THR_LOCK_myisam); + share->last_version= 0L; /* Impossible version */ + pthread_mutex_unlock(&THR_LOCK_myisam); + break; case HA_EXTRA_PREPARE_FOR_DELETE: pthread_mutex_lock(&THR_LOCK_myisam); share->last_version= 0L; /* Impossible version */ |