diff options
author | Alexander Nozdrin <alik@sun.com> | 2010-01-28 00:24:35 +0300 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2010-01-28 00:24:35 +0300 |
commit | cf97ed0c1ba8ee78f40d3ffab50df79d4cbaacd0 (patch) | |
tree | bad36dcce2113d8e95564e7190843c67fed8086c /mysql-test/t/partition_innodb.test | |
parent | ee7b8b77613c8fcc9eb134fe528de9b9586365b6 (diff) | |
parent | 8c6d6c0c6caaecfce24ae031ffca1f0031ce798d (diff) | |
download | mariadb-git-cf97ed0c1ba8ee78f40d3ffab50df79d4cbaacd0.tar.gz |
Manual merge from mysql-trunk-merge.
Conflicts:
- sql/ha_partition.cc
- sql/sql_partition.cc
The following tests started to fail:
- main.partition_innodb (a crash)
Diffstat (limited to 'mysql-test/t/partition_innodb.test')
-rw-r--r-- | mysql-test/t/partition_innodb.test | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/mysql-test/t/partition_innodb.test b/mysql-test/t/partition_innodb.test index fe3a5be085c..a910bbb001e 100644 --- a/mysql-test/t/partition_innodb.test +++ b/mysql-test/t/partition_innodb.test @@ -5,6 +5,8 @@ drop table if exists t1; --enable_warnings +let $MYSQLD_DATADIR= `SELECT @@datadir`; + # # BUG#47774, Assertion failure in InnoDB using column list partitioning # @@ -344,6 +346,47 @@ CREATE TABLE t1 (a INT) ENGINE=InnoDB PARTITION BY list(a) (PARTITION p1 VALUES IN (1)); CREATE INDEX i1 ON t1 (a); DROP TABLE t1; -let $MYSQLD_DATADIR= `SELECT @@datadir`; + # Before the fix it should show extra file like #sql-2405_2.par --list_files $MYSQLD_DATADIR/test/ * + +--echo # +--echo # Bug#47343: InnoDB fails to clean-up after lock wait timeout on +--echo # REORGANIZE PARTITION +--echo # +CREATE TABLE t1 ( + a INT, + b DATE NOT NULL, + PRIMARY KEY (a, b) +) ENGINE=InnoDB +PARTITION BY RANGE (a) ( + PARTITION pMAX VALUES LESS THAN MAXVALUE +) ; + +INSERT INTO t1 VALUES (1, '2001-01-01'), (2, '2002-02-02'), (3, '2003-03-03'); + +START TRANSACTION; +SELECT * FROM t1 FOR UPDATE; + +connect (con1, localhost, root,,); +--echo # Connection con1 +--error ER_LOCK_WAIT_TIMEOUT +ALTER TABLE t1 REORGANIZE PARTITION pMAX INTO +(PARTITION p3 VALUES LESS THAN (3), + PARTITION pMAX VALUES LESS THAN MAXVALUE); +SHOW WARNINGS; +--error ER_LOCK_WAIT_TIMEOUT +ALTER TABLE t1 REORGANIZE PARTITION pMAX INTO +(PARTITION p3 VALUES LESS THAN (3), + PARTITION pMAX VALUES LESS THAN MAXVALUE); +SHOW WARNINGS; + +#Contents of the 'test' database directory: +--list_files $MYSQLD_DATADIR/test + +disconnect con1; +connection default; +--echo # Connection default +SELECT * FROM t1; +COMMIT; +DROP TABLE t1; |