mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
9094e97aed
Adding new fields Last_{IO,SQL}_Errno and Last_{IO,SQL}_Error to output of SHOW SLAVE STATUS to hold errors from I/O and SQL thread respectively. Old fields Last_Error and Last_Errno are aliases for Last_SQL_Error and Last_SQL_Errno respectively. Fields are added last to output of SHOW SLAVE STATUS to allow old applications to use the same positional arguments into the row, while allowing new application to benefit from the added information. In addition, some new error codes are added (especially for the I/O thread) to be able to provide sensible error message.
19 lines
580 B
Text
19 lines
580 B
Text
source include/have_binlog_format_mixed_or_statement.inc;
|
|
source include/master-slave.inc;
|
|
|
|
# We do this little stunt to make sure that the slave has started
|
|
# before we stop it again.
|
|
connection master;
|
|
CREATE TABLE t1 (a INT, b INT);
|
|
INSERT INTO t1 VALUES (1,10);
|
|
sync_slave_with_master;
|
|
source include/show_slave_status.inc;
|
|
|
|
# Now we feed it a load data infile, which should make it stop with a
|
|
# fatal error.
|
|
connection master;
|
|
LOAD DATA INFILE '../std_data_ln/rpl_loaddata.dat' INTO TABLE t1;
|
|
|
|
connection slave;
|
|
wait_for_slave_to_stop;
|
|
source include/show_slave_status.inc;
|