mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
c0075fa64b
"Add a column "Timestamp_of_last_master_event_executed" in SHOW SLAVE STATUS". Finally this is adding - Slave_IO_State (a copy of the State column of SHOW PROCESSLIST for the I/O thread, so that the users, most of the time, has enough info with only SHOW SLAVE STATUS). - Seconds_behind_master. When the slave connects to the master it does SELECT UNIX_TIMESTAMP() on the master, computes the absolute difference between the master's and the slave's clock. It records the timestamp of the last event executed by the SQL thread, and does a small computation to find the number of seconds by which the slave is late.
22 lines
655 B
Text
22 lines
655 B
Text
# Testing if "flush logs" command bouncing resulting in logs created in a loop
|
|
# in case of bi-directional replication
|
|
|
|
source include/master-slave.inc
|
|
|
|
connection slave;
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$MASTER_MYPORT;
|
|
start slave;
|
|
connection master;
|
|
stop slave;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
eval change master to master_host='127.0.0.1',master_user='root',
|
|
master_password='',master_port=$SLAVE_MYPORT;
|
|
start slave;
|
|
sleep 5;
|
|
flush logs;
|
|
sleep 5;
|
|
--replace_result $SLAVE_MYPORT SLAVE_PORT
|
|
--replace_column 33 #
|
|
show slave status;
|