diff options
author | unknown <ingo@mysql.com> | 2005-03-02 10:35:00 +0100 |
---|---|---|
committer | unknown <ingo@mysql.com> | 2005-03-02 10:35:00 +0100 |
commit | 26f75ffc83e39ee915e8d4973955c950ddabb35b (patch) | |
tree | 26e67311fd029bf9026836ac8fe24ecb83ac29e1 /myisam/myisamdef.h | |
parent | 22e0b300a47321ec8dfef0bb8bc5f7c0f1449ce1 (diff) | |
download | mariadb-git-26f75ffc83e39ee915e8d4973955c950ddabb35b.tar.gz |
Bug#8306 - TRUNCATE leads to index corruption
Added a check, if the table, which we are going to create, is open.
This can happen if a MERGE mapped table is TRUNCATEd.
myisam/mi_open.c:
Bug#8306 - TRUNCATE leads to index corruption
Made test_if_reopen() globally available.
myisam/myisamdef.h:
Bug#8306 - TRUNCATE leads to index corruption
Declared test_if_reopen() as globally available.
mysql-test/r/myisam.result:
Bug#8306 - TRUNCATE leads to index corruption
The test result.
mysql-test/t/myisam.test:
Bug#8306 - TRUNCATE leads to index corruption
The test case.
Diffstat (limited to 'myisam/myisamdef.h')
-rw-r--r-- | myisam/myisamdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/myisam/myisamdef.h b/myisam/myisamdef.h index 736ce3f3869..916932c9eb3 100644 --- a/myisam/myisamdef.h +++ b/myisam/myisamdef.h @@ -705,6 +705,7 @@ void mi_copy_status(void* to,void *from); my_bool mi_check_status(void* param); void mi_disable_non_unique_index(MI_INFO *info, ha_rows rows); +extern MI_INFO *test_if_reopen(char *filename); my_bool check_table_is_closed(const char *name, const char *where); int mi_open_datafile(MI_INFO *info, MYISAM_SHARE *share, File file_to_dup); int mi_open_keyfile(MYISAM_SHARE *share); |