mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Now merge is done.
For previous commit I had run only rpl* tests, here the other ones had a few surprises. Latest status: - all tests pass - all replication tests pass with Valgrind This is the final-final commit & push. Doc remains. client/mysqlbinlog.cc: Making remote mysqlbinlog work with the new format of 5.0.0, and still be able to talk to older servers. This is a quickfix, but now mysqlbinlog.test passes (mysqlbinlog seems to work in Valgrind, too). mysql-test/r/drop_temp_table.result: result update mysql-test/r/insert_select.result: result update mysql-test/r/mix_innodb_myisam_binlog.result: result update mysql-test/r/mysqlbinlog.result: result update mysql-test/t/mix_innodb_myisam_binlog.test: position update mysql-test/t/mysqlbinlog.test: position update sql/log_event.cc: a comment (noticed the problem by watching the results of mix_innodb_myisam_binlog.test)
This commit is contained in:
@@ -25,7 +25,7 @@ insert into t1 values(1);
|
||||
insert into t2 select * from t1;
|
||||
commit;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -37,7 +37,7 @@ insert into t2 select * from t1;
|
||||
# should say some changes to non-transact1onal tables couldn't be rolled back
|
||||
rollback;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -51,7 +51,7 @@ insert into t2 select * from t1;
|
||||
rollback to savepoint my_savepoint;
|
||||
commit;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -67,7 +67,7 @@ insert into t1 values(7);
|
||||
commit;
|
||||
select a from t1 order by a; # check that savepoints work :)
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
# and when ROLLBACK is not explicit?
|
||||
delete from t1;
|
||||
@@ -87,7 +87,7 @@ connection con2;
|
||||
# so SHOW BINLOG EVENTS may come before con1 does the loggin. To be sure that
|
||||
# logging has been done, we use a user lock.
|
||||
select get_lock("a",10);
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
# and when not in a transact1on?
|
||||
delete from t1;
|
||||
@@ -97,10 +97,10 @@ reset master;
|
||||
insert into t1 values(9);
|
||||
insert into t2 select * from t1;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
# Check that when the query updat1ng the MyISAM table is the first in the
|
||||
# transact1on, we log it immediately.
|
||||
# transaction, we log it immediately.
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
reset master;
|
||||
@@ -108,11 +108,11 @@ reset master;
|
||||
insert into t1 values(10); # first make t1 non-empty
|
||||
begin;
|
||||
insert into t2 select * from t1;
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
insert into t1 values(11);
|
||||
commit;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
|
||||
# Check that things work like before this BEGIN/ROLLBACK code was added,
|
||||
@@ -129,7 +129,7 @@ insert into t1 values(12);
|
||||
insert into t2 select * from t1;
|
||||
commit;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -140,7 +140,7 @@ insert into t1 values(13);
|
||||
insert into t2 select * from t1;
|
||||
rollback;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -154,7 +154,7 @@ insert into t2 select * from t1;
|
||||
rollback to savepoint my_savepoint;
|
||||
commit;
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
@@ -170,6 +170,6 @@ insert into t1 values(18);
|
||||
commit;
|
||||
select a from t1 order by a; # check that savepoints work :)
|
||||
|
||||
show binlog events from 79;
|
||||
show binlog events from 95;
|
||||
|
||||
drop table t1,t2;
|
||||
|
||||
Reference in New Issue
Block a user