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

skip delete events of changelog table in binlog listener #1427

Open
whhe opened this issue Jul 1, 2024 · 0 comments · May be fixed by #1434
Open

skip delete events of changelog table in binlog listener #1427

whhe opened this issue Jul 1, 2024 · 0 comments · May be fixed by #1434

Comments

@whhe
Copy link

whhe commented Jul 1, 2024

We are building a system for OceanBase database that is compatible with MySQL's SQL protocol and Replication protocol, called OceanBase Binlog Service. For some reason, an upsert event (on duplicated key update) in this system is converted into a delete event and an insert event in the binlog. In order to make it work without affecting the original logic, I want to check and skip the delete event of the changelog in the onChangelogEvent function.

func (this *Migrator) onChangelogEvent(dmlEvent *binlog.BinlogDMLEvent) (err error) {

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 a pull request may close this issue.

1 participant