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

Position for MySQL 9.1 might be incorrect #1009

Open
dveeden opened this issue Mar 9, 2025 · 2 comments
Open

Position for MySQL 9.1 might be incorrect #1009

dveeden opened this issue Mar 9, 2025 · 2 comments

Comments

@dveeden
Copy link
Collaborator

dveeden commented Mar 9, 2025

To me it looks like for MySQL 9.1 the position might be end pos instead of the start position of the event.

@lance6716
Copy link
Collaborator

Hi @dveeden do you mean the position in binlog header?

It means "position of the next event" in all versions. You can search for "log-pos" in https://dev.mysql.com/doc/dev/mysql-server/9.1.0/page_protocol_replication_binlog_event.html

@dveeden
Copy link
Collaborator Author

dveeden commented Mar 9, 2025

That's very well possible. I'll do some tests to verify this. Note that mysqlbinlog names this end_log_pos and has at %d for the start position of the event.

  • We may have to double check the docs on this
  • We could consider renaming the field to EndPos to make this obvious for people
  • Maybe there should be a StartPos and EndPos in the header?
  • Any renames should be done in a way that doesn't break compatibility if possible

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

No branches or pull requests

2 participants