mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#17284 erroneous temp table cleanup on slave.
Idea of the fix is for master to send FD event with `created' as 0 to reconnecting slave (upon slave_net_timeout, no master crash) to avoid destroying temp tables. In a case of a connect by slave to the master after its crash temp tables have been already cleaned up so that slave can not keep `orphan' temp tables.
This commit is contained in:
@ -89,3 +89,17 @@ f
|
||||
7
|
||||
drop table t1,t2;
|
||||
create temporary table t3 (f int);
|
||||
create temporary table t4 (f int);
|
||||
create table t5 (f int);
|
||||
drop table if exists t999;
|
||||
create temporary table t999 (f int);
|
||||
LOAD DATA INFILE "./var/tmp/bl_dump_thread_id" into table t999;
|
||||
drop table t999;
|
||||
insert into t4 values (1);
|
||||
kill `select id from information_schema.processlist where command='Binlog Dump'`;
|
||||
insert into t5 select * from t4;
|
||||
select * from t5 /* must be 1 after reconnection */;
|
||||
f
|
||||
1
|
||||
drop temporary table t4;
|
||||
drop table t5;
|
||||
|
Reference in New Issue
Block a user