diff options
author | Monty <monty@mariadb.org> | 2015-07-17 16:27:41 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2015-08-18 11:18:57 +0300 |
commit | 92fd65832727162a003647b4c48344dc9567ce84 (patch) | |
tree | ee92ae361346ef043aa08c04442298643242de0f /mysql-test/r/repair_symlink-5543.result | |
parent | 35a019837e0290af45962484b4ddc1d6a92ac654 (diff) | |
download | mariadb-git-92fd65832727162a003647b4c48344dc9567ce84.tar.gz |
MDEV-8475 stale .TMM file causes MyiSAM and Aria engine to stop serving the table
Issue was two fold (both in MyISAM and Aria)
- optimize and repair failed if there was an old .TMM file around. As optimized and repair are protected against multiple execution, I decided to change so that we just truncate the file if it exists.
- I had missed to check for error condition if creation of the temporary index file failed. This caused the strange behaviour that it looked as if optimized would have worked once.
Diffstat (limited to 'mysql-test/r/repair_symlink-5543.result')
-rw-r--r-- | mysql-test/r/repair_symlink-5543.result | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mysql-test/r/repair_symlink-5543.result b/mysql-test/r/repair_symlink-5543.result index 051c9ca3472..98ded32686e 100644 --- a/mysql-test/r/repair_symlink-5543.result +++ b/mysql-test/r/repair_symlink-5543.result @@ -2,13 +2,12 @@ create table t1 (a int) engine=myisam data directory='MYSQL_TMP_DIR'; insert t1 values (1); repair table t1; Table Op Msg_type Msg_text -test.t1 repair error Can't create new tempfile: 'MYSQL_TMP_DIR/t1.TMD' -test.t1 repair status Operation failed +test.t1 repair status OK drop table t1; create table t2 (a int) engine=aria data directory='MYSQL_TMP_DIR'; insert t2 values (1); repair table t2; Table Op Msg_type Msg_text -test.t2 repair error Can't create new tempfile: 'MYSQL_TMP_DIR/t2.TMD' -test.t2 repair status Operation failed +test.t2 repair status OK drop table t2; +foobar5543 |