mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
spurious binlog error code logging on temp table auto-drop fixed
added a new replication test sql/sql_base.cc: f
This commit is contained in:
4
mysql-test/r/rpl_alter.result
Normal file
4
mysql-test/r/rpl_alter.result
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
n m
|
||||||
|
1 2
|
||||||
|
n
|
||||||
|
45
|
21
mysql-test/t/rpl_alter.test
Normal file
21
mysql-test/t/rpl_alter.test
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
source include/master-slave.inc;
|
||||||
|
connection master;
|
||||||
|
use test;
|
||||||
|
drop database if exists d1;
|
||||||
|
create database d1;
|
||||||
|
create table d1.t1 ( n int);
|
||||||
|
alter table d1.t1 add m int;
|
||||||
|
insert into d1.t1 values (1,2);
|
||||||
|
create table d1.t2 (n int);
|
||||||
|
insert into d1.t2 values (45);
|
||||||
|
rename table d1.t2 to d1.t3, d1.t1 to d1.t2;
|
||||||
|
save_master_pos;
|
||||||
|
connection slave;
|
||||||
|
sync_with_master;
|
||||||
|
select * from d1.t2;
|
||||||
|
select * from d1.t3;
|
||||||
|
connection master;
|
||||||
|
drop database d1;
|
||||||
|
save_master_pos;
|
||||||
|
connection slave;
|
||||||
|
sync_with_master;
|
@@ -546,6 +546,7 @@ void close_temporary_tables(THD *thd)
|
|||||||
*--end = 0; // Remove last ','
|
*--end = 0; // Remove last ','
|
||||||
thd->query_length = (uint)(end-query);
|
thd->query_length = (uint)(end-query);
|
||||||
Query_log_event qinfo(thd, query);
|
Query_log_event qinfo(thd, query);
|
||||||
|
qinfo.error_code=0;
|
||||||
mysql_bin_log.write(&qinfo);
|
mysql_bin_log.write(&qinfo);
|
||||||
thd->query_length = save_query_len;
|
thd->query_length = save_query_len;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user