~percona-core/percona-server/5.1

« back to all changes in this revision

Viewing changes to patches/xtradb_bug317074.patch

  • Committer: Stewart Smith
  • Date: 2011-11-24 08:14:40 UTC
  • Revision ID: stewart@flamingspork.com-20111124081440-jffloqgkbgytzgl5
remove now unneeded patches as we're part of a happy bzr tree

Show diffs side-by-side

added added

removed removed

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