Skip to content
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

binlog replication interface between GMS and Dolt #1514

Merged
merged 29 commits into from
Jan 24, 2023

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Jan 4, 2023

This PR adds a BinlogReplicaController interface that defines how GMS interacts with the binlog replication code in Dolt when a user enters a replication SQL command, such as CHANGE REPLICATION SOURCE TO ..., START REPLICA, etc.

The biggest remaining TODO in this code is adding support for CheckPrivileges functions.

In the future, we may want to refactor out the generic binlog replication code to GMS and keep the Dolt/storage specific components in Dolt with a more detailed interface, but that felt like overkill for the initial binlog implementation.

@fulghum fulghum marked this pull request as ready for review January 4, 2023 23:21
@fulghum fulghum requested a review from zachmu January 5, 2023 01:01
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall interface for replica controller looks fine. I have some questions about the top-level integration with engine, other than that LGTM

engine.go Outdated Show resolved Hide resolved
engine.go Outdated Show resolved Hide resolved
@fulghum fulghum merged commit b660a4c into main Jan 24, 2023
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.

2 participants