]> git.pld-linux.org Git - packages/mysql.git/blob - xtradb_bug317074.patch
- updated to 5.5.32
[packages/mysql.git] / xtradb_bug317074.patch
1 --- /dev/null
2 +++ b/mysql-test/r/percona_xtradb_bug317074.result
3 @@ -0,0 +1,5 @@
4 +SET @old_innodb_file_format=@@innodb_file_format;
5 +SET @old_innodb_file_format_max=@@innodb_file_format_max;
6 +SET @old_innodb_file_per_table=@@innodb_file_per_table;
7 +SET GLOBAL innodb_file_format='Barracuda';
8 +SET GLOBAL innodb_file_per_table=ON;
9 --- /dev/null
10 +++ b/mysql-test/t/percona_xtradb_bug317074.test
11 @@ -0,0 +1,47 @@
12 +-- source include/have_innodb.inc
13 +
14 +SET @old_innodb_file_format=@@innodb_file_format;
15 +SET @old_innodb_file_format_max=@@innodb_file_format_max;
16 +SET @old_innodb_file_per_table=@@innodb_file_per_table;
17 +SET GLOBAL innodb_file_format='Barracuda';
18 +SET GLOBAL innodb_file_per_table=ON;
19 +
20 +-- disable_query_log
21 +-- disable_result_log
22 +
23 +DROP TABLE IF EXISTS `test1`;
24 +CREATE TABLE IF NOT EXISTS `test1` (
25 + `a` int primary key auto_increment,
26 + `b` int default 0,
27 + `c` char(100) default 'testtest'
28 +) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
29 +
30 +delimiter |;
31 +CREATE PROCEDURE insert_many(p1 int)
32 +BEGIN
33 +SET @x = 0;
34 +SET @y = 0;
35 +start transaction;
36 +REPEAT
37 +  insert into test1 set b=1;
38 +  SET @x = @x + 1;
39 +  SET @y = @y + 1;
40 +  IF @y >= 1000 THEN
41 +    commit;
42 +    start transaction;
43 +    SET @y = 0;
44 +  END IF;
45 +UNTIL @x >= p1 END REPEAT;
46 +commit;
47 +END|
48 +delimiter ;|
49 +call insert_many(100000);
50 +DROP PROCEDURE insert_many;
51 +
52 +# The bug is hangup at the following statement
53 +ALTER TABLE test1 ENGINE=MyISAM;
54 +
55 +DROP TABLE test1;
56 +SET GLOBAL innodb_file_format=@old_innodb_file_format;
57 +SET GLOBAL innodb_file_format_max=@old_innodb_file_format_max;
58 +SET GLOBAL innodb_file_per_table=@old_innodb_file_per_table;
This page took 0.031118 seconds and 3 git commands to generate.