Commit ce6cce85 authored by Monty's avatar Monty Committed by Sergei Golubchik

MDEV-33620 Improve times and states in show processlist for replication

- Slave_IO thread time is now reset between reading events. Before
  this commit Slave_IO always showed "Waiting for master to send
  event" and the time was from SLAVE START. Now it shows time since
  reading last event.
parent d2e6fe02
......@@ -5006,6 +5006,7 @@ pthread_handler_t handle_slave_io(void *arg)
important thing is to not confuse users by saying "reading" whereas
we're in fact receiving nothing.
*/
thd->set_time_for_next_stage();
THD_STAGE_INFO(thd, stage_waiting_for_master_to_send_event);
#ifdef ENABLED_DEBUG_SYNC
......@@ -5052,6 +5053,7 @@ Stopping slave I/O thread due to out-of-memory error from master");
} // if (event_len == packet_error)
retry_count=0; // ok event, reset retry counter
thd->set_time_for_next_stage();
THD_STAGE_INFO(thd, stage_queueing_master_event_to_the_relay_log);
event_buf= mysql->net.read_pos + 1;
mi->semi_ack= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment