mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
53def7bda7
Reverting to old behaviour of writing the query before all rows have been written. mysql-test/r/rpl_row_delayed_ins.result: Result change sql/sql_class.cc: Adding debug message to binlog_query() sql/sql_insert.cc: - Changing write_delayed() to use a LEX_STRING for the query. - Adding query string to class delayed_row. - Removing query string from class delayed_insert. - Adding code to copy query string and delete it when the row is executed. - Logging query at first row instead of after all rows are inserted (reverting to old behaviour). - Flushing the pending row event after all rows have been inserted. This is necessary since binlog_query() is called before all rows instead of after. mysql-test/r/rpl_insert.result: New BitKeeper file ``mysql-test/r/rpl_insert.result'' mysql-test/t/rpl_insert.test: New BitKeeper file ``mysql-test/t/rpl_insert.test''
29 lines
920 B
Text
29 lines
920 B
Text
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 t1(a int not null primary key) engine=myisam;
|
|
insert delayed into t1 values (1),(2),(3);
|
|
flush tables;
|
|
SELECT * FROM t1 ORDER BY a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
show binlog events;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 4 Format_desc 1 102 Server ver: VERSION, Binlog ver: 4
|
|
master-bin.000001 102 Query 1 222 use `test`; create table t1(a int not null primary key) engine=myisam
|
|
master-bin.000001 222 Table_map 1 261 table_id: # (test.t1)
|
|
master-bin.000001 261 Write_rows 1 295 table_id: # flags: STMT_END_F
|
|
master-bin.000001 295 Table_map 1 334 table_id: # (test.t1)
|
|
master-bin.000001 334 Write_rows 1 373 table_id: # flags: STMT_END_F
|
|
master-bin.000001 373 Query 1 448 use `test`; flush tables
|
|
SELECT * FROM t1 ORDER BY a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
drop table t1;
|