Commit 382aed90 authored by unknown's avatar unknown

Tiny cleanup after the push of WL#1098 "Seconds_behind_master in SHOW SLAVE STATUS":

a better comment, and replacing an assignment by an equivalent simpler one.


sql/log_event.cc:
  a better comment, and replacing an assignment by an equivalent simpler one.
parent 7b382d6f
......@@ -327,8 +327,12 @@ int Log_event::exec_event(struct st_relay_log_info* rli)
{
rli->inc_group_relay_log_pos(get_event_len(),log_pos);
flush_relay_log_info(rli);
/* if this is a fake rotate, don't record the timestamp */
rli->last_master_timestamp= (when) ? when : 0;
/*
Note that Rotate_log_event::exec_event() does not call this function,
so there is no chance that a fake rotate event resets
last_master_timestamp.
*/
rli->last_master_timestamp= when;
}
}
return 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