Commit 651358e1 authored by mats@romeo.(none)'s avatar mats@romeo.(none)

BUG#27583 (slave sql fails to read from iocache when slave got

stopped at pos==4):

Submitting patch on behalf of Andrei, who discovered the problem
and provided the patch.

An update of the group relay log coordinates when rotating forgot to
update the group relay log name and only updated the group relay log
position (and group master log name and position).

This patch adds code to update the group relay log *name* as well as
the position 
parent f1589702
......@@ -3663,6 +3663,9 @@ int Rotate_log_event::do_update_pos(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->notify_group_relay_log_name_update();
rli->group_relay_log_pos= rli->event_relay_log_pos;
DBUG_PRINT("info", ("new group_master_log_name: '%s' "
"new 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