diff options
author | Sergey Vojtovich <sergey.vojtovich@oracle.com> | 2011-10-21 09:35:07 +0400 |
---|---|---|
committer | Sergey Vojtovich <sergey.vojtovich@oracle.com> | 2011-10-21 09:35:07 +0400 |
commit | afdfc6acf99872e9887e8b6b001a9c6227c9c20e (patch) | |
tree | c06c4e1f57daf52d46be75d1afe9d8e24f90dd30 /mysql-test | |
parent | f6064041d29781e1f665e79e2d79fd6e99476a5d (diff) | |
parent | e1c4021bde046618699d52399a2b9a081f328a64 (diff) | |
download | mariadb-git-afdfc6acf99872e9887e8b6b001a9c6227c9c20e.tar.gz |
Merge.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/myisam.result | 24 | ||||
-rw-r--r-- | mysql-test/t/myisam.test | 18 |
2 files changed, 42 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result index e366c5d1110..dfad082845f 100644 --- a/mysql-test/r/myisam.result +++ b/mysql-test/r/myisam.result @@ -2414,6 +2414,30 @@ CARDINALITY DROP TABLE t1; SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size; SET myisam_repair_threads=@@global.myisam_repair_threads; +# +# BUG#11757032 - 49030: OPTIMIZE TABLE BREAKS MYISAM TABLE WHEN +# USING MYISAM_USE_MMAP ON WINDOWS +# +SET GLOBAL myisam_use_mmap=1; +CREATE TABLE t1(a INT); +INSERT INTO t1 VALUES(1),(2); +DELETE FROM t1 WHERE a=1; +FLUSH TABLE t1; +LOCK TABLE t1 WRITE; +OPTIMIZE TABLE t1; +Table Op Msg_type Msg_text +test.t1 optimize status OK +INSERT INTO t1 VALUES(3); +UNLOCK TABLES; +SELECT * FROM t1; +a +2 +3 +CHECK TABLE t1; +Table Op Msg_type Msg_text +test.t1 check status OK +DROP TABLE t1; +SET GLOBAL myisam_use_mmap=default; End of 5.1 tests # # Bug#51327 MyISAM table is automatically repaired on ALTER diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test index d4b4d1555b6..8c9f51b1252 100644 --- a/mysql-test/t/myisam.test +++ b/mysql-test/t/myisam.test @@ -1647,6 +1647,24 @@ DROP TABLE t1; SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size; SET myisam_repair_threads=@@global.myisam_repair_threads; +--echo # +--echo # BUG#11757032 - 49030: OPTIMIZE TABLE BREAKS MYISAM TABLE WHEN +--echo # USING MYISAM_USE_MMAP ON WINDOWS +--echo # +SET GLOBAL myisam_use_mmap=1; +CREATE TABLE t1(a INT); +INSERT INTO t1 VALUES(1),(2); +DELETE FROM t1 WHERE a=1; +FLUSH TABLE t1; +LOCK TABLE t1 WRITE; +OPTIMIZE TABLE t1; +INSERT INTO t1 VALUES(3); +UNLOCK TABLES; +SELECT * FROM t1; +CHECK TABLE t1; +DROP TABLE t1; +SET GLOBAL myisam_use_mmap=default; + --echo End of 5.1 tests |