Skip to content

Add GTID support #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Add GTID support #4

wants to merge 10 commits into from

Conversation

seruman
Copy link

@seruman seruman commented Dec 7, 2020

Adds support for replication.GTID_EVENT. On GTID_EVENT, obtained GTID is associated with current RowsEventBuffer. When buffer drains and resets on XID_EVENT, it also resets its GTID value. This way only change events would have non-empty GTID values.

Tried to create a test fixture based on data/fixture/mysql-bin.01 with GTIDs enabled, which can be found at data/gtid-fixtures/ with it's SQL file. This binlog was generated with MySQL 5.7 with following mysqld flags:

--server-id=1
--log-bin=mysql-bin
--binlog-format=ROW
--gtid-mode=ON
--enforce-gtid-consistency
--log-slave-updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant