summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 2050be0e6de..ebbd0d1b373 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -327,6 +327,8 @@ 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;
}
}
return 0;