[MDEV-4353] multi_source replication conflict between different master connections on global variable relay_log_purge Created: 2013-04-02  Updated: 2013-05-01  Resolved: 2013-05-01

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Kristian Nielsen Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: multisource


 Description   

In change_master() (sql_repl.cc), there is this code:

  if (need_relay_log_purge)
  {
    relay_log_purge= 1;

This code is incorrect. The variable relay_log_purge is global, but
change_master() is per-master-connection.

This means that if one CHANGE MASTER needs relay log purge, and another CHANGE
MASTER does not, they will overwrite each other and relay logs will be handled
incorrectly for at least one of them when the slave threads start.

There seems to be no code to handle this correctly per-connection.



 Comments   
Comment by Elena Stepanova [ 2013-04-02 ]

See also MDEV-4117

Comment by Elena Stepanova [ 2013-05-01 ]

Shall we close it as a duplicate, or do you think there's something different comparing to MDEV-4117 that's worth keeping open?

Generated at Thu Feb 08 06:55:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.