mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02: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. mysql-test/r/rpl000009.result: result update mysql-test/t/rpl000009.test: adding a test for RESET SLAVE + LOAD DATA FROM MASTER sql/repl_failsafe.cc: LOAD DATA FROM MASTER udpates the master info in the slave, so needs to ensure that it is properly inited first (otherwise, after RESET SLAVE, we are flush_io_cache()ing an uninitialized IO_CACHE master.info). Note that it master info is already inited (active_mi->inited==1), init_master_info() will do nothing, which is what we want.
This commit is contained in:
parent
e9eb02398c
commit
9d78adc16f
3 changed files with 37 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue