Commit f1df2a8c authored by guilhem@gbichot2's avatar guilhem@gbichot2

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.
parent 44fc80c8
...@@ -327,8 +327,12 @@ int Log_event::exec_event(struct st_relay_log_info* rli) ...@@ -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); rli->inc_group_relay_log_pos(get_event_len(),log_pos);
flush_relay_log_info(rli); 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; 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