| 1 |
SET @default_max_binlog_size = @@global.max_binlog_size; |
| 2 |
set global max_binlog_size=1048576; |
| 3 |
create table test.tn (b varchar(1000)) engine=ndb; |
| 4 |
create procedure create_load(loops int) |
| 5 |
begin |
| 6 |
set @x = 0; |
| 7 |
repeat |
| 8 |
insert into tn values (repeat('C', 100)); |
| 9 |
insert into tn values (repeat('C', 100)); |
| 10 |
insert into tn values (repeat('C', 100)); |
| 11 |
insert into tn values (repeat('C', 100)); |
| 12 |
insert into tn values (repeat('C', 100)); |
| 13 |
insert into tn values (repeat('C', 100)); |
| 14 |
insert into tn values (repeat('C', 100)); |
| 15 |
insert into tn values (repeat('C', 100)); |
| 16 |
insert into tn values (repeat('C', 100)); |
| 17 |
insert into tn values (repeat('C', 100)); |
| 18 |
delete from tn; |
| 19 |
set @x = @x + 1; |
| 20 |
until @x = loops |
| 21 |
end repeat; |
| 22 |
end% |
| 23 |
call create_load(20); |
| 24 |
FLUSH LOGS; |
| 25 |
drop procedure create_load; |
| 26 |
drop table tn; |
| 27 |
set global max_binlog_size= @default_max_binlog_size; |