mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
385780f571
The idea in the code was to protect the user that tries to connect a slave to a master with completely different domains than what was intended. If none of the domains in the start position are present at all in the master binlog, we gave an error. However, this is a stupid idea. Because when a slave connects to a master to start replication from the very start of binlogs - such as when setting up new master->slave servers from scratch - there will be just this situation, the requested slave position is empty for all the domains in the master's binlog. So the code that gives this error is wrong, and the solution is simply to remove it.
15 lines
604 B
Text
15 lines
604 B
Text
include/rpl_init.inc [topology=1->3]
|
|
*** MDEV-4485. Master did not allow slave to connect from the very start (empty GTID pos) if GTIDs from other multi_source master was present ***
|
|
create table t1 (i int);
|
|
create table t2 (i int);
|
|
set default_master_connection = 'm2';
|
|
change master to master_host='127.0.0.1', master_port=SERVER_MYPORT_2, master_user='root', master_use_gtid=slave_pos;
|
|
include/start_slave.inc
|
|
insert into t2 values (1);
|
|
drop table t1;
|
|
drop table t2;
|
|
set default_master_connection = 'm2';
|
|
include/stop_slave.inc
|
|
RESET SLAVE ALL;
|
|
set default_master_connection = '';
|
|
include/rpl_end.inc
|