Commit 1b42af2c authored by unknown's avatar unknown

Bug #27583 slave sql fails to read from iocache when slave got stopped at pos==4

forgotten merge with 5.0. There can be some bugs waiting for this fix in 5.0 like Bug@29232


sql/log_event.cc:
  file name is changed in step with the position.
parent 69f01d70
......@@ -3397,6 +3397,8 @@ int Rotate_log_event::exec_event(struct st_relay_log_info* rli)
memcpy(rli->group_master_log_name, new_log_ident, ident_len+1);
rli->notify_group_master_log_name_update();
rli->group_master_log_pos= pos;
strmake(rli->group_relay_log_name, rli->event_relay_log_name,
sizeof(rli->group_relay_log_name) - 1);
rli->group_relay_log_pos= rli->event_relay_log_pos;
DBUG_PRINT("info", ("group_master_log_name: '%s' group_master_log_pos:\
%lu",
......
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