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/mi_open.c | |
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/mi_open.c')
-rw-r--r-- | myisam/mi_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c index 2a327e4bd35..2c85a03c6f4 100644 --- a/myisam/mi_open.c +++ b/myisam/mi_open.c @@ -50,7 +50,7 @@ if (pos > end_pos) \ ** In MySQL the server will handle version issues. ******************************************************************************/ -static MI_INFO *test_if_reopen(char *filename) +MI_INFO *test_if_reopen(char *filename) { LIST *pos; |