1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for BUG#2922 "Crash (signal11) after "load data from master""

with a testcase.
We needed to init_master_info before we flush_master_info
in LOAD DATA FROM MASTER.
This commit is contained in:
guilhem@mysql.com
2004-03-17 10:35:03 +01:00
parent d325d2ab45
commit 0f3600d51e
3 changed files with 37 additions and 2 deletions

View File

@ -111,6 +111,18 @@ n s
2 two bar
3 three bar
4 four bar
stop slave;
reset slave;
load data from master;
start slave;
insert into bar.t1 values (5, 'five bar');
select * from bar.t1;
n s
1 one bar
2 two bar
3 three bar
4 four bar
5 five bar
load table bar.t1 from master;
Table 't1' already exists
drop table bar.t1;

View File

@ -108,6 +108,21 @@ connection slave;
sync_with_master;
select * from bar.t1;
# Check that LOAD DATA FROM MASTER is able to create master.info
# if needed (if RESET SLAVE was used before), before writing to it (BUG#2922).
stop slave;
reset slave;
load data from master;
start slave;
# see if replication coordinates were restored fine
connection master;
insert into bar.t1 values (5, 'five bar');
save_master_pos;
connection slave;
sync_with_master;
select * from bar.t1;
# Check that LOAD DATA FROM MASTER reports the error if it can't drop a
# table to be overwritten.
# DISABLED FOR NOW AS chmod IS NOT PORTABLE ON NON-UNIX