Commit c5b597bc authored by aelkin/elkin@koti.dsl.inet.fi's avatar aelkin/elkin@koti.dsl.inet.fi
Browse files

bug#30435

changes due to non-determinism in value of read_buffer_size.
parent d8100934
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -5,12 +5,9 @@ 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);
show variables like 'max_allowed_packet' /* 8K */;
Variable_name	Value
max_allowed_packet	7168
show variables like 'read_buffer_size'   /* 9K */;
Variable_name	Value
read_buffer_size	8228
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(*)
+10000 −0

File added.

Preview size limit exceeded, changes collapsed.

+5000 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −2
Original line number Diff line number Diff line
@@ -26,8 +26,7 @@ flush logs;
connection master;
create table t2 (id int not null primary key auto_increment);

show variables like 'max_allowed_packet' /* 8K */;
show variables like 'read_buffer_size'   /* 9K */;
select @@session.read_buffer_size - @@session.max_allowed_packet > 0 ;

--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
eval load data infile '$MYSQLTEST_VARDIR/tmp/bug30435_5k.txt' into table t2;