diff options
author | gbichot@quadita2.mysql.com <> | 2005-03-24 15:44:50 +0100 |
---|---|---|
committer | gbichot@quadita2.mysql.com <> | 2005-03-24 15:44:50 +0100 |
commit | 32f1e3b0294299ac4642ef4263c80e852e8b7b30 (patch) | |
tree | dd699b76484d15f5c93e11865a649073cb1d3704 /mysql-test | |
parent | a8c1316c6befc7121b2c9890e4883c56cfaec52a (diff) | |
parent | 5acca04c7cc6e6a275cf97b11abbd0664ba3df58 (diff) | |
download | mariadb-git-32f1e3b0294299ac4642ef4263c80e852e8b7b30.tar.gz |
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0
into quadita2.mysql.com:/nfstmp1/guilhem/mysql-5.0-4ita
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/rpl_deadlock.result | 6 | ||||
-rw-r--r-- | mysql-test/t/rpl_deadlock.test | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/rpl_deadlock.result b/mysql-test/r/rpl_deadlock.result index 809b7950add..732979eae0a 100644 --- a/mysql-test/r/rpl_deadlock.result +++ b/mysql-test/r/rpl_deadlock.result @@ -8,6 +8,9 @@ create table t1 (a int not null, key(a)) engine=innodb; create table t2 (a int not null, key(a)) engine=innodb; create table t3 (a int) engine=innodb; create table t4 (a int) engine=innodb; +show variables like 'slave_transaction_retries'; +Variable_name Value +slave_transaction_retries 0 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( @@ -20,6 +23,9 @@ t2 CREATE TABLE `t2` ( `a` int(11) NOT NULL, KEY `a` (`a`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 +show variables like 'slave_transaction_retries'; +Variable_name Value +slave_transaction_retries 2 stop slave; begin; insert into t3 select * from t2 for update; diff --git a/mysql-test/t/rpl_deadlock.test b/mysql-test/t/rpl_deadlock.test index a196495e834..800ff319ba0 100644 --- a/mysql-test/t/rpl_deadlock.test +++ b/mysql-test/t/rpl_deadlock.test @@ -7,6 +7,8 @@ # (Guilhem) have seen the test manage to provoke lock wait timeout # error but not deadlock error; that is ok as code deals with the two # errors in exactly the same way. +# We don't 'show status like 'slave_retried_transactions'' because this +# is not repeatable (depends on sleeps). source include/have_innodb.inc; source include/master-slave.inc; @@ -16,10 +18,12 @@ create table t1 (a int not null, key(a)) engine=innodb; create table t2 (a int not null, key(a)) engine=innodb; create table t3 (a int) engine=innodb; create table t4 (a int) engine=innodb; +show variables like 'slave_transaction_retries'; sync_slave_with_master; show create table t1; show create table t2; +show variables like 'slave_transaction_retries'; stop slave; # 1) Test deadlock |