mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
df3b1a54f4
* A more dynamic binlog format which allows small changes (1064) * Log session variables in Query_log_event (1063) It contains a few bugfixes (which I made when running the testsuite). I carefully updated the results of the testsuite (i.e. I checked for every one, if the difference between .reject and .result could be explained). Apparently mysql-test-run --manager is broken in 4.1 and 5.0 currently, so I could neither run the few tests which require --manager, nor check that they pass nor modify their .result. But for builds, we don't run with --manager. Apart from --manager, the full testsuite passes, with Valgrind too (no errors). I'm going to push in the next minutes. Remains: update the manual. Note: by chance I saw that (in 4.1, in 5.0) rpl_get_lock fails when run alone; this is normal at it makes assumptions on thread ids. I will fix this one day in 4.1.
30 lines
781 B
Text
30 lines
781 B
Text
source include/master-slave.inc;
|
|
|
|
connection slave;
|
|
select get_lock("a",5);
|
|
connection master;
|
|
create table t1(n int);
|
|
insert into t1 values(1+get_lock("a",15)*0);
|
|
insert into t1 values(2);
|
|
save_master_pos;
|
|
connection slave;
|
|
--real_sleep 3; # can't sync_with_master as we should be blocked
|
|
stop slave;
|
|
select * from t1;
|
|
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
show slave status;
|
|
change master to master_user='root';
|
|
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
|
show slave status;
|
|
# Will restart from after the values(2), which is bug
|
|
select release_lock("a");
|
|
start slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
connection master;
|
|
drop table t1;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|