File tree Expand file tree Collapse file tree 3 files changed +60
-2
lines changed
Expand file tree Collapse file tree 3 files changed +60
-2
lines changed Original file line number Diff line number Diff line change 1+ CREATE TABLE t1 (a INT) ENGINE=InnoDB;
2+ INSERT INTO t1 VALUES (1);
3+ XA START 'x';
4+ UPDATE t1 set a=2;
5+ XA END 'x';
6+ XA PREPARE 'x';
7+ call mtr.add_suppression("Found 1 prepared XA transactions");
8+ SELECT * FROM t1 LOCK IN SHARE MODE;
9+ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
10+ SELECT * FROM t1;
11+ a
12+ 2
13+ XA ROLLBACK 'x';
14+ SELECT * FROM t1;
15+ a
16+ 1
17+ DROP TABLE t1;
Original file line number Diff line number Diff line change 1+ --source include/have_innodb.inc
2+
3+ CREATE TABLE t1 (a INT) ENGINE=InnoDB;
4+ INSERT INTO t1 VALUES (1);
5+ connect (con1,localhost,root);
6+ XA START 'x'; UPDATE t1 set a=2; XA END 'x'; XA PREPARE 'x';
7+ connection default;
8+
9+ call mtr.add_suppression("Found 1 prepared XA transactions");
10+
11+ # Kill and restart the server.
12+ -- exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
13+ -- shutdown_server 0
14+ -- source include/wait_until_disconnected.inc
15+
16+ -- exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
17+ -- enable_reconnect
18+ -- source include/wait_until_connected_again.inc
19+ -- disable_reconnect
20+
21+ disconnect con1;
22+ connect (con1,localhost,root);
23+ --send SELECT * FROM t1 LOCK IN SHARE MODE
24+
25+ connection default;
26+ let $wait_condition=
27+ select count(*) = 1 from information_schema.processlist
28+ where state = 'Sending data' and
29+ info = 'SELECT * FROM t1 LOCK IN SHARE MODE';
30+ --source include/wait_condition.inc
31+
32+ --source include/restart_mysqld.inc
33+
34+ disconnect con1;
35+
36+ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
37+ SELECT * FROM t1;
38+ XA ROLLBACK 'x';
39+ SELECT * FROM t1;
40+
41+ DROP TABLE t1;
Original file line number Diff line number Diff line change 11/*****************************************************************************
22
3- Copyright (c) 1996, 2013 , Oracle and/or its affiliates. All rights reserved.
3+ Copyright (c) 1996, 2015 , Oracle and/or its affiliates. All rights reserved.
44Copyright (c) 2008, Google Inc.
55Copyright (c) 2009, Percona Inc.
66
@@ -2230,9 +2230,9 @@ innobase_shutdown_for_mysql(void)
22302230
22312231ibuf_close ();
22322232log_shutdown ();
2233- lock_sys_close ();
22342233trx_sys_file_format_close ();
22352234trx_sys_close ();
2235+ lock_sys_close ();
22362236
22372237mutex_free (& srv_monitor_file_mutex );
22382238mutex_free (& srv_dict_tmpfile_mutex );
You can’t perform that action at this time.
0 commit comments