8000 想咨询下在LogHeader中,LogPos选择end position的优势 · Issue #5480 · alibaba/canal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
想咨询下在LogHeader中,LogPos选择end position的优势 #5480
Closed
@NativeTheOne

Description

@NativeTheOne

MySQL的binlog在遇到长事务的时候,如果该事务超出了2的32次方(4294967296), binlog的end position会溢出从123开始,但是start position则不会。我这边因为需要用到这个position所以想咨询下选用end position的优势。

在LogHeader中,会加上当前event的长度算出end position
logPos += eventLen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0