MDEV-12290 Wrong timestamps in binary log causes replication issues
Binlog_background_thread does not make a call to set_time(), And when we call binlog_checkpoint_log_event->write() , we write the wrong timestamp. In this patch we correct this by calling thd->set_time().
This commit is contained in:
parent
b3939a35aa
commit
56b3bcc812
@ -9623,6 +9623,8 @@ binlog_background_thread(void *arg __attribute__((unused)))
|
||||
{
|
||||
THD_STAGE_INFO(thd, stage_binlog_processing_checkpoint_notify);
|
||||
DEBUG_SYNC(thd, "binlog_background_thread_before_mark_xid_done");
|
||||
/* Set the thread start time */
|
||||
thd->set_time();
|
||||
/* Grab next pointer first, as mark_xid_done() may free the element. */
|
||||
next= queue->next_in_queue;
|
||||
mysql_bin_log.mark_xid_done(queue->binlog_id, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user