Commit 8d55da9f authored by Monty's avatar Monty

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 2d7a3638
......@@ -4982,6 +4982,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
......@@ -5028,6 +5029,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