@@ -5,7 +5,7 @@ FLUSH TABLES;
5
5
CREATE TABLE t1(id INT PRIMARY KEY, c2 INT UNIQUE)
6
6
ENGINE=InnoDB ROW_FORMAT=REDUNDANT;
7
7
CREATE TABLE t2 LIKE t1;
8
- INSERT INTO t1 VALUES(1 ,2);
8
+ INSERT INTO t1 VALUES(0 ,2);
9
9
BEGIN;
10
10
INSERT INTO t2 VALUES(2,1);
11
11
ALTER TABLE t2 ADD COLUMN (c3 TEXT NOT NULL DEFAULT 'De finibus bonorum');
@@ -15,16 +15,17 @@ ALTER TABLE t1 ADD COLUMN (c3 TEXT NOT NULL DEFAULT ' et malorum');
15
15
connection default;
16
16
SET DEBUG_SYNC='now WAIT_FOR ddl';
17
17
SET GLOBAL innodb_flush_log_at_trx_commit=1;
18
- COMMIT ;
18
+ INSERT INTO t2 VALUES(3,4,'accusantium doloremque laudantium') ;
19
19
# Kill the server
20
20
disconnect ddl;
21
21
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
22
22
SELECT * FROM t1;
23
23
id c2
24
- 1 2
24
+ 0 2
25
25
SELECT * FROM t2;
26
26
id c2 c3
27
27
2 1 De finibus bonorum
28
+ 3 4 accusantium doloremque laudantium
28
29
BEGIN;
29
30
DELETE FROM t1;
30
31
ROLLBACK;
@@ -41,11 +42,13 @@ DELETE FROM t1;
41
42
disconnect ddl;
42
43
SET @saved_frequency= @@GLOBAL.innodb_purge_rseg_truncate_frequency;
43
44
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
45
+ FOUND 2 /\[Note\] InnoDB: Rolled back recovered transaction / in mysqld.1.err
44
46
SELECT * FROM t1;
45
47
id c2
46
48
SELECT * FROM t2;
47
49
id c2 c3
48
50
2 1 De finibus bonorum
51
+ 3 4 accusantium doloremque laudantium
49
52
64 42 De finibus bonorum
50
53
347 33101 et malorum
51
54
BEGIN;
@@ -59,27 +62,32 @@ N_RECS=0; LEVEL=0
59
62
header=0x010000030074 (id=0x696e66696d756d00)
60
63
header=0x010008030000 (id=0x73757072656d756d00)
61
64
t2 clustered index root page(type 18):
62
- N_RECS=4 ; LEVEL=0
65
+ N_RECS=5 ; LEVEL=0
63
66
header=0x010000030088 (id=0x696e66696d756d00)
64
67
header=0x1000100b00b9 (id=0x80000000,
65
68
DB_TRX_ID=0x000000000000,
66
69
DB_ROLL_PTR=0x80000000000000,
67
70
c2=NULL(4 bytes),
68
71
c3=0x44652066696e6962757320626f6e6f72756d)
69
- header=0x0000180900d8 (id=0x80000002,
72
+ header=0x0000180900d9 (id=0x80000002,
70
73
DB_TRX_ID=0x000000000000,
71
74
DB_ROLL_PTR=0x80000000000000,
72
75
c2=0x80000001)
73
- header=0x0000200900f8 (id=0x80000040,
76
+ header=0x0000200b0119 (id=0x80000003,
77
+ DB_TRX_ID=0x000000000000,
78
+ DB_ROLL_PTR=0x80000000000000,
79
+ c2=0x80000004,
80
+ c3=0x6163637573616e7469756d20646f6c6f72656d717565206c617564616e7469756d)
81
+ header=0x000028090139 (id=0x80000040,
74
82
DB_TRX_ID=0x000000000000,
75
83
DB_ROLL_PTR=0x80000000000000,
76
84
c2=0x8000002a)
77
- header=0x0000280b0074 (id=0x8000015b,
85
+ header=0x0000300b0074 (id=0x8000015b,
78
86
DB_TRX_ID=0x000000000000,
79
87
DB_ROLL_PTR=0x80000000000000,
80
88
c2=0x8000814d,
81
89
c3=0x206574206d616c6f72756d)
82
- header=0x050008030000 (id=0x73757072656d756d00)
90
+ header=0x060008030000 (id=0x73757072656d756d00)
83
91
UNLOCK TABLES;
84
92
DELETE FROM t2;
85
93
InnoDB 0 transactions not purged
0 commit comments