Commit b2b725db authored by aelkin@mysql.com's avatar aelkin@mysql.com

Merge mysql.com:/usr_rh9/home/elkin.rh9/MySQL/BARE/4.1

into  mysql.com:/usr_rh9/home/elkin.rh9/MySQL/Merge/5.0
parents c5219d0d a4ff3120
...@@ -82,7 +82,6 @@ drop temporary table t3; ...@@ -82,7 +82,6 @@ drop temporary table t3;
select * from t2; select * from t2;
--replace_result $VERSION VERSION --replace_result $VERSION VERSION
--replace_column 2 # 5 #
show binlog events; show binlog events;
drop table t1, t2; drop table t1, t2;
...@@ -130,30 +129,31 @@ create temporary table t3 (f int); ...@@ -130,30 +129,31 @@ create temporary table t3 (f int);
sync_with_master; sync_with_master;
# #
# Bug#17284 erroneous temp table cleanup on slave # BUG#17263 incorrect generation DROP temp tables
# Temporary tables of connection are dropped in batches
# where a batch correspond to pseudo_thread_id
# value was set up at the moment of temp table creation
# #
connection con1;
set @session.pseudo_thread_id=100;
create temporary table t101 (id int);
create temporary table t102 (id int);
set @session.pseudo_thread_id=200;
create temporary table t201 (id int);
create temporary table `#not_user_table_prefixed_with_hash_sign_no_harm` (id int);
set @con1_id=connection_id();
kill @con1_id;
#now do something to show that slave is ok after DROP temp tables
connection master; connection master;
create temporary table t4 (f int); create table t1(f int);
create table t5 (f int); insert into t1 values (1);
sync_with_master;
# find dumper's $id
source include/get_binlog_dump_thread_id.inc;
insert into t4 values (1);
# a hint how to do that in 5.1
--replace_result $id "`select id from information_schema.processlist where command='Binlog Dump'`"
eval kill $id; # to stimulate reconnection by slave w/o timeout
insert into t5 select * from t4;
save_master_pos;
connection slave;
sync_with_master;
select * from t5 /* must be 1 after reconnection */;
connection master; sync_slave_with_master;
drop temporary table t4; #connection slave;
drop table t5; select * from t1 /* must be 1 */;
# The server will now close done connection master;
drop table t1;
# End of 5.0 tests # End of 4.1 tests
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment