MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Andrei Elkin Date:October 30 2006 3:09pm
Subject:bk commit into 5.1 tree (aelkin:1.2323) BUG#20697
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of elkin. When elkin does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-10-30 17:09:28+02:00, aelkin@stripped +2 -0
  BUG#20697 slave fails to rollback replicated transaction hang over innodb_lock_wait_timeou
  post-merge fixes in test/result

  mysql-test/extra/rpl_tests/rpl_deadlock.test@stripped, 2006-10-30 17:09:24+02:00, aelkin@stripped +2 -2
    recalculating BEGIN's event position.

  mysql-test/r/rpl_deadlock_innodb.result@stripped, 2006-10-30 17:09:24+02:00, aelkin@stripped +18 -9
    results changed

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	aelkin
# Host:	dsl-hkigw8-feaef900-46.dhcp.inet.fi
# Root:	/home/elkin/MySQL/TEAM/FIXES/merge_50

--- 1.12/mysql-test/r/rpl_deadlock_innodb.result	2006-10-30 17:09:44 +02:00
+++ 1.13/mysql-test/r/rpl_deadlock_innodb.result	2006-10-30 17:09:44 +02:00
@@ -6,7 +6,7 @@ drop table if exists t1,t2,t3,t4,t5,t6,t
 start slave;
 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 t3 (a INT  UNIQUE) ENGINE=innodb;
 CREATE TABLE t4 (a INT) ENGINE=innodb;
 show variables like 'slave_transaction_retries';
 Variable_name	Value
@@ -35,14 +35,14 @@ begin;
 select * from t1 for update;
 a
 start slave;
-insert into t2 values(22);
+insert into t2 values(201);
 commit;
 select * from t1;
 a
 1
 select * from t2;
 a
-22
+201
 show slave status;
 Slave_IO_State	#
 Master_Host	127.0.0.1
@@ -78,12 +78,16 @@ Master_SSL_Cipher	
 Master_SSL_Key	
 Seconds_Behind_Master	#
 stop slave;
-change master to master_log_pos=536;
+delete from t3;
+change master to master_log_pos=544;
 begin;
 select * from t2 for update;
 a
-22
+201
 start slave;
+select count(*) from t3  /* must be zero */;
+count(*)
+0
 commit;
 select * from t1;
 a
@@ -91,7 +95,7 @@ a
 1
 select * from t2;
 a
-22
+201
 show slave status;
 Slave_IO_State	#
 Master_Host	127.0.0.1
@@ -128,12 +132,16 @@ Master_SSL_Key	
 Seconds_Behind_Master	#
 set global max_relay_log_size=0;
 stop slave;
-change master to master_log_pos=536;
+delete from t3;
+change master to master_log_pos=544;
 begin;
 select * from t2 for update;
 a
-22
+201
 start slave;
+select count(*) from t3  /* must be zero */;
+count(*)
+0
 commit;
 select * from t1;
 a
@@ -142,7 +150,7 @@ a
 1
 select * from t2;
 a
-22
+201
 show slave status;
 Slave_IO_State	#
 Master_Host	127.0.0.1
@@ -178,3 +186,4 @@ Master_SSL_Cipher	
 Master_SSL_Key	
 Seconds_Behind_Master	#
 drop table t1,t2,t3,t4;
+End of 5.1 tests

--- 1.14/mysql-test/extra/rpl_tests/rpl_deadlock.test	2006-10-30 17:09:44 +02:00
+++ 1.15/mysql-test/extra/rpl_tests/rpl_deadlock.test	2006-10-30 17:09:44 +02:00
@@ -75,7 +75,7 @@ show slave status;
 
 stop slave;
 delete from t3;
-change master to master_log_pos=543; # the BEGIN log event
+change master to master_log_pos=544; # the BEGIN log event
 begin;
 select * from t2 for update; # hold lock
 start slave;
@@ -100,7 +100,7 @@ set global max_relay_log_size=0;
 # This is really copy-paste of 2) of above
 stop slave;
 delete from t3;
-change master to master_log_pos=543;
+change master to master_log_pos=544;
 begin;
 select * from t2 for update;
 start slave;
Thread
bk commit into 5.1 tree (aelkin:1.2323) BUG#20697Andrei Elkin30 Oct