mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
9f6aa11769
Fixed problem with not freed thr_alarm() on slave connect
21 lines
559 B
Text
21 lines
559 B
Text
source include/master-slave.inc;
|
|
connection master;
|
|
use test;
|
|
drop database if exists test_$1;
|
|
create database test_$1;
|
|
create table test_$1.t1 ( n int);
|
|
alter table test_$1.t1 add m int;
|
|
insert into test_$1.t1 values (1,2);
|
|
create table test_$1.t2 (n int);
|
|
insert into test_$1.t2 values (45);
|
|
rename table test_$1.t2 to test_$1.t3, test_$1.t1 to test_$1.t2;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from test_$1.t2;
|
|
select * from test_$1.t3;
|
|
connection master;
|
|
drop database test_$1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|