mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
c78680b43f
Changed Rotate_log_event::exec_event() to not increment positions when the event is seen in the middle of a transaction. mysql-test/r/rpl_relayrotate.result: remove timeout which was too short for Valgrind mysql-test/r/rpl_until.result: updated error message mysql-test/t/rpl_relayrotate.test: removed timeout which was too short for Valgrind sql/log_event.cc: Fix for a rpl_relayrotate failure. The problem was that Rotate_log_event::exec_event() believed that the relay log was corrupted. Fixed it by moving the test for corruption to Start_log_event::exec_event(). Changed Rotate_log_event::exec_event() to not increment positions when the event is seen in the middle of a transaction (that was an old bug found by chance :)
19 lines
397 B
Text
19 lines
397 B
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
stop slave;
|
|
create table t1 (a int) type=innodb;
|
|
reset slave;
|
|
start slave;
|
|
stop slave;
|
|
start slave;
|
|
select master_pos_wait('master-bin.001',3000)>=0;
|
|
master_pos_wait('master-bin.001',3000)>=0
|
|
1
|
|
select * from t1 where a=8000;
|
|
a
|
|
8000
|
|
drop table t1;
|