summaryrefslogtreecommitdiff
path: root/mysql-test/suite/maria/optimize.test
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-06-09 16:08:09 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-06-09 23:24:03 +0400
commit80f6b2259330f2bc4de1692b671ab553dc5b4353 (patch)
treea4e66963a6a2e096b36f806662fcd55365f94c85 /mysql-test/suite/maria/optimize.test
parent3a50a8c9bed9163beb3373cee8e2a51b3550b72e (diff)
downloadmariadb-git-80f6b2259330f2bc4de1692b671ab553dc5b4353.tar.gz
MDEV-3870 - Valgrind warnings on OPTIMIZE MyISAM or Aria TABLE with disabled
keys Fixed that OPTIMIZE TABLE against MyISAM/Aria table may write uninitialized key root position for disabled keys.
Diffstat (limited to 'mysql-test/suite/maria/optimize.test')
-rw-r--r--mysql-test/suite/maria/optimize.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/suite/maria/optimize.test b/mysql-test/suite/maria/optimize.test
index 6b310b1d1a6..b1fc250cd29 100644
--- a/mysql-test/suite/maria/optimize.test
+++ b/mysql-test/suite/maria/optimize.test
@@ -160,3 +160,13 @@ INSERT /*! IGNORE */ INTO t1 VALUES ('urxjxqvwabikpugvexxbxdpxjkeqiuhhuadbcuhoz
check table t1;
OPTIMIZE TABLE t1;
drop table t1;
+
+--echo #
+--echo # MDEV-3870 - Valgrind warnings on OPTIMIZE MyISAM or Aria TABLE with
+--echo # disabled keys
+--echo #
+CREATE TABLE t1 (a INT, KEY(a)) ENGINE=Aria;
+INSERT INTO t1 VALUES (4),(3),(1),(0);
+ALTER TABLE t1 DISABLE KEYS;
+OPTIMIZE TABLE t1;
+DROP TABLE t1;