mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fixed bug in load data infile replication
updated test suite to always test if slave obeys stop/start commands
This commit is contained in:
@ -4,8 +4,10 @@ connect (slave,localhost,root,,test,0,var/tmp/mysql-slave.sock);
|
|||||||
connect (slave1,localhost,root,,test,0,var/tmp/mysql-slave.sock);
|
connect (slave1,localhost,root,,test,0,var/tmp/mysql-slave.sock);
|
||||||
connection slave;
|
connection slave;
|
||||||
!slave stop;
|
!slave stop;
|
||||||
|
@r/slave-stopped.result show status like 'Slave_running';
|
||||||
connection master;
|
connection master;
|
||||||
reset master;
|
reset master;
|
||||||
connection slave;
|
connection slave;
|
||||||
reset slave;
|
reset slave;
|
||||||
!slave start;
|
slave start;
|
||||||
|
@r/slave-running.result show status like 'Slave_running';
|
||||||
|
2
mysql-test/r/slave-running.result
Normal file
2
mysql-test/r/slave-running.result
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Variable_name Value
|
||||||
|
Slave_running ON
|
2
mysql-test/r/slave-stopped.result
Normal file
2
mysql-test/r/slave-stopped.result
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Variable_name Value
|
||||||
|
Slave_running OFF
|
@ -572,7 +572,7 @@ Load_log_event::Load_log_event(IO_CACHE* file, time_t when, uint32 server_id):
|
|||||||
}
|
}
|
||||||
|
|
||||||
Load_log_event::Load_log_event(const char* buf, int event_len):
|
Load_log_event::Load_log_event(const char* buf, int event_len):
|
||||||
Log_event(when,0,0,server_id),data_buf(0),num_fields(0),fields(0),
|
Log_event(buf),data_buf(0),num_fields(0),fields(0),
|
||||||
field_lens(0),field_block_len(0),
|
field_lens(0),field_block_len(0),
|
||||||
table_name(0),db(0),fname(0)
|
table_name(0),db(0),fname(0)
|
||||||
{
|
{
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user