| 1 |
use test; |
| 2 |
reset master; |
| 3 |
create table t1 (a int primary key, b int) engine=ndb; |
| 4 |
Low level transport test |
| 5 |
set global debug='+d,ndb_injector_set_event_conflict_flags'; |
| 6 |
Two inserts to the same table, with nothing else in the epoch, |
| 7 |
will be grouped together in one binlog event, as the |
| 8 |
extra row info is the same. |
| 9 |
insert into test.t1 values (1,1), (2,2); |
| 10 |
A separate delete. |
| 11 |
delete from test.t1 where a=2; |
| 12 |
txt |
| 13 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x0200FAFA |
| 14 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x0200FAFA |
| 15 |
set global debug=''; |
| 16 |
delete from test.t1; |
| 17 |
reset master; |
| 18 |
Specific flag settings test : Reflect |
| 19 |
set global debug='+d,ndb_set_reflect_anyvalue'; |
| 20 |
Two inserts to the same table, with nothing else in the epoch, |
| 21 |
will be grouped together in one binlog event, as the |
| 22 |
extra row info is the same. |
| 23 |
insert into test.t1 values (1,1), (2,2); |
| 24 |
A separate delete. |
| 25 |
delete from test.t1 where a=2; |
| 26 |
txt |
| 27 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x02000100 |
| 28 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x02000100 |
| 29 |
set global debug=''; |
| 30 |
delete from test.t1; |
| 31 |
reset master; |
| 32 |
Specific flag settings test : Refresh |
| 33 |
set global debug='+d,ndb_set_refresh_anyvalue'; |
| 34 |
Two inserts to the same table, with nothing else in the epoch, |
| 35 |
will be grouped together in one binlog event, as the |
| 36 |
extra row info is the same. |
| 37 |
insert into test.t1 values (1,1), (2,2); |
| 38 |
A separate delete. |
| 39 |
delete from test.t1 where a=2; |
| 40 |
txt |
| 41 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x02000200 |
| 42 |
### Extra row ndb info: data_format: 0, len: 4, data: 0x02000200 |
| 43 |
set global debug=''; |
| 44 |
drop table t1; |