mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixes to make tests pass on pushbuild.
mysql-test/suite/rpl/t/rpl_loaddata_map-master.opt: Rename: mysql-test/t/rpl_loaddata_map-master.opt -> mysql-test/suite/rpl/t/rpl_loaddata_map-master.opt mysql-test/suite/rpl/t/rpl_loaddata_map-slave.opt: Rename: mysql-test/t/rpl_loaddata_map-slave.opt -> mysql-test/suite/rpl/t/rpl_loaddata_map-slave.opt mysql-test/include/show_binlog_events2.inc: Binlog position change. mysql-test/suite/rpl/r/rpl_loaddata_map.result: Result change. mysql-test/suite/rpl/r/rpl_user.result: Result change. mysql-test/suite/rpl/t/rpl_loaddata_map.test: Test is only sensible to execute for statement and mixed mode. mysql-test/suite/rpl/t/rpl_user.test: Test assumed that binary log is identical for row- and statement- based logging, which it was not. Deleting users individually on master and slave respectively, without involving binary log.
This commit is contained in:
26
mysql-test/suite/rpl/r/rpl_loaddata_map.result
Normal file
26
mysql-test/suite/rpl/r/rpl_loaddata_map.result
Normal file
@ -0,0 +1,26 @@
|
||||
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;
|
||||
create table t2 (id int not null primary key auto_increment);
|
||||
select @@session.read_buffer_size - @@session.max_allowed_packet > 0 ;
|
||||
@@session.read_buffer_size - @@session.max_allowed_packet > 0
|
||||
1
|
||||
load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;
|
||||
select count(*) from t2 /* 5 000 */;
|
||||
count(*)
|
||||
5000
|
||||
show binlog events in 'master-bin.000002' from 106;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000002 106 Query 1 # use `test`; create table t2 (id int not null primary key auto_increment)
|
||||
master-bin.000002 229 Begin_load_query 1 # ;file_id=#;block_len=8192
|
||||
master-bin.000002 8444 Append_block 1 # ;file_id=#;block_len=8192
|
||||
master-bin.000002 16659 Append_block 1 # ;file_id=#;block_len=7509
|
||||
master-bin.000002 24191 Execute_load_query 1 # use `test`; load data infile 'MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2 ;file_id=#
|
||||
select count(*) from t2 /* 5 000 */;
|
||||
count(*)
|
||||
5000
|
||||
drop table t1, t2;
|
||||
end of the tests
|
Reference in New Issue
Block a user