Skip to content

Position for MySQL 9.1 might be incorrect #1009

Open
@dveeden

Description

@dveeden

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

Activity

self-assigned this
on Mar 9, 2025
lance6716

lance6716 commented on Mar 9, 2025

@lance6716
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

dveeden commented on Mar 9, 2025

@dveeden
CollaboratorAuthor

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Position for MySQL 9.1 might be incorrect · Issue #1009 · go-mysql-org/go-mysql