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

mysql_db: binlog replication configuration table #1530

Merged
merged 8 commits into from
Jan 11, 2023

Conversation

fulghum
Copy link
Contributor

@fulghum fulghum commented Jan 11, 2023

binlog replication requires a persistent store for replication configuration so that a server can be restarted and still retain the replication configuration settings a user provided. MySQL uses a table in the mysql database for this, so I've added that table to our implementation of mysql_db.

I added a test for the new table's schema, but skipped the JSON loading test that other entities implemented, since I think the JSON serialization support is deprecated and everything is serializing through flatbuffers now. Happy to implement that test if it's still need though.

Copy link
Contributor

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

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

LGTM! Only have a single comment. JSON serialization is definitely deprecated, so no need to implement anything for it.

sql/mysql_db/replica_source_info.go Outdated Show resolved Hide resolved
@fulghum fulghum merged commit 464fcbc into main Jan 11, 2023
@fulghum fulghum deleted the fulghum/replica-source-info-table branch January 11, 2023 17:40
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