27 changed files with 233 additions and 73 deletions
-
2VERSION
-
10cmake/make_dist.cmake.in
-
4cmd-line-utils/libedit/el_terminal.h
-
8cmd-line-utils/libedit/emacs.c
-
15cmd-line-utils/libedit/terminal.c
-
8cmd-line-utils/libedit/vi.c
-
23mysql-test/r/partition_innodb.result
-
17mysql-test/suite/innodb/r/xa_recovery.result
-
43mysql-test/suite/innodb/t/xa_recovery.test
-
11mysql-test/suite/parts/r/partition_debug_sync_innodb.result
-
5mysql-test/suite/parts/t/partition_debug_sync_innodb.test
-
5mysql-test/suite/rpl/r/rpl_tmp_table_and_DDL.result
-
10mysql-test/suite/rpl/t/rpl_tmp_table_and_DDL.test
-
24mysql-test/t/partition_innodb.test
-
4packaging/rpm-oel/mysql.spec.in
-
11sql/filesort.cc
-
6sql/ha_ndbcluster_binlog.cc
-
18sql/item_sum.cc
-
15sql/sql_show.cc
-
2sql/sql_table.cc
-
5storage/innobase/buf/buf0buf.c
-
2storage/innobase/dict/dict0dict.c
-
34storage/innobase/handler/ha_innodb.cc
-
4storage/innobase/srv/srv0start.c
-
7storage/innobase/sync/sync0arr.c
-
9storage/myisam/rt_split.c
-
4support-files/mysql.spec.sh
@ -1,4 +1,4 @@ |
|||
MYSQL_VERSION_MAJOR=5 |
|||
MYSQL_VERSION_MINOR=5 |
|||
MYSQL_VERSION_PATCH=43 |
|||
MYSQL_VERSION_PATCH=44 |
|||
MYSQL_VERSION_EXTRA= |
|||
@ -0,0 +1,17 @@ |
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
XA START 'x'; |
|||
UPDATE t1 set a=2; |
|||
XA END 'x'; |
|||
XA PREPARE 'x'; |
|||
call mtr.add_suppression("Found 1 prepared XA transactions"); |
|||
SELECT * FROM t1 LOCK IN SHARE MODE; |
|||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
|||
SELECT * FROM t1; |
|||
a |
|||
2 |
|||
XA ROLLBACK 'x'; |
|||
SELECT * FROM t1; |
|||
a |
|||
1 |
|||
DROP TABLE t1; |
|||
@ -0,0 +1,43 @@ |
|||
--source include/have_innodb.inc |
|||
# Embedded server does not support restarting. |
|||
--source include/not_embedded.inc |
|||
|
|||
CREATE TABLE t1 (a INT) ENGINE=InnoDB; |
|||
INSERT INTO t1 VALUES (1); |
|||
connect (con1,localhost,root); |
|||
XA START 'x'; UPDATE t1 set a=2; XA END 'x'; XA PREPARE 'x'; |
|||
connection default; |
|||
|
|||
call mtr.add_suppression("Found 1 prepared XA transactions"); |
|||
|
|||
# Kill and restart the server. |
|||
-- exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect |
|||
-- shutdown_server 0 |
|||
-- source include/wait_until_disconnected.inc |
|||
|
|||
-- exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect |
|||
-- enable_reconnect |
|||
-- source include/wait_until_connected_again.inc |
|||
-- disable_reconnect |
|||
|
|||
disconnect con1; |
|||
connect (con1,localhost,root); |
|||
--send SELECT * FROM t1 LOCK IN SHARE MODE |
|||
|
|||
connection default; |
|||
let $wait_condition= |
|||
select count(*) = 1 from information_schema.processlist |
|||
where state = 'Sending data' and |
|||
info = 'SELECT * FROM t1 LOCK IN SHARE MODE'; |
|||
--source include/wait_condition.inc |
|||
|
|||
--source include/restart_mysqld.inc |
|||
|
|||
disconnect con1; |
|||
|
|||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
|||
SELECT * FROM t1; |
|||
XA ROLLBACK 'x'; |
|||
SELECT * FROM t1; |
|||
|
|||
DROP TABLE t1; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue