1xa rollback 'xid2';
2ERROR XAE04: XAER_NOTA: Unknown XID
3drop table if exists t1;
4Warnings:
5Note	1051	Unknown table 'test.t1'
6create table t1(a int)engine=innodb;
7rollback;
8xa start 'xid2';
9insert into `t1` values (1);
10savepoint `sv1`;
11xa end 'xid2';
12start transaction;
13ERROR XAE07: XAER_RMFAIL: The command cannot be executed when global transaction is in the  IDLE state
14xa prepare 'xid2';
15release savepoint `sv1`;
16xa commit 'xid2';
17drop table t1;
18