mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
f47124c9ef
In domain ID based filtering, a flag is used to filter-out the events that belong to a particular domain. This flag gets set when IO thread receives a GTID_EVENT for the domain on filter list and its reset at the last event in the GTID group. The resetting, however, was wrongly done before the decision to write/filter the event from relay log is made. As a result, the last event in the group will always pass through the filter. Fixed by deferring the reset logic. Also added a test case.
20 lines
274 B
INI
20 lines
274 B
INI
!include ../my.cnf
|
|
|
|
[mysqld.1]
|
|
log-slave-updates
|
|
loose-innodb
|
|
gtid_domain_id=1
|
|
|
|
[mysqld.2]
|
|
log-slave-updates
|
|
loose-innodb
|
|
gtid_domain_id=2
|
|
|
|
[mysqld.3]
|
|
log-slave-updates
|
|
loose-innodb
|
|
gtid_domain_id=3
|
|
|
|
[ENV]
|
|
SERVER_MYPORT_3= @mysqld.3.port
|
|
SERVER_MYSOCK_3= @mysqld.3.socket
|