| 1 |
include/suppress_messages.inc |
| 2 |
# Connection 1 suppresses message <Found .* prepared XA transactions>. |
| 3 |
# Connection 1 suppresses message <.*Checksum mismatch in datafile.*>. |
| 4 |
CREATE TABLE t1 (c1 INT PRIMARY KEY); |
| 5 |
XA START X'78696431',X'',1; |
| 6 |
INSERT INTO t1 VALUES (2); |
| 7 |
XA END X'78696431',X'',1; |
| 8 |
XA PREPARE X'78696431',X'',1; |
| 9 |
XA COMMIT X'78696431',X'',1; |
| 10 |
include/save_binlog_position.inc |
| 11 |
XA START X'78696431',X'',1; |
| 12 |
INSERT INTO t1 VALUES (1); |
| 13 |
XA END X'78696431',X'',1; |
| 14 |
XA PREPARE X'78696431',X'',1; |
| 15 |
FLUSH LOGS; |
| 16 |
PURGE BINARY LOGS TO 'BINLOG_FILE'; |
| 17 |
include/save_binlog_position.inc |
| 18 |
include/execute_to_conditional_timestamp_sync_point.inc [before_rollback_xa_trx] |
| 19 |
XA ROLLBACK X'78696431',X'',1; |
| 20 |
# Kill the server |
| 21 |
ERROR HY000: Lost connection to MySQL server during query |
| 22 |
# restart |
| 23 |
include/assert.inc [Found 1 log message(s) for "Successfully prepared 1 XA transaction"] |
| 24 |
include/assert_binlog_events.inc [()] |
| 25 |
include/assert.inc [GTID_EXECUTED has not been updated] |
| 26 |
include/assert.inc [1 XA transaction(s) in PREPARED state] |
| 27 |
include/assert.inc [XA transaction X'78696431',X'',1 is in PREPARED state] |
| 28 |
include/assert.inc [Table 'test.t1' record count must be 1] |
| 29 |
# restart |
| 30 |
include/assert.inc [1 XA transaction(s) in PREPARED state] |
| 31 |
include/assert.inc [XA transaction X'78696431',X'',1 is in PREPARED state] |
| 32 |
XA ROLLBACK X'78696431',X'',1; |
| 33 |
include/assert.inc [Table 'test.t1' record count must be 1] |
| 34 |
DROP TABLE t1; |