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

working with log_file and log_pos #62

Closed
walito opened this issue Apr 1, 2014 · 3 comments
Closed

working with log_file and log_pos #62

walito opened this issue Apr 1, 2014 · 3 comments

Comments

@walito
Copy link

walito commented Apr 1, 2014

I have the following config:

stream = BinLogStreamReader(
    connection_settings=MYSQL_SETTINGS, 
    server_id=3,
    only_events=[DeleteRowsEvent, WriteRowsEvent, UpdateRowsEvent], 
    blocking=True,
    log_file='mysql.004356',
    log_pos=85760046)

The log_file and log_pos is from the last backup, also Im showing binlogevent.packet.log_pos, if I stop the script and try to start again from the last binlogevent.packet.log_pos, this number is less than 85760046.
What is this position in binlogevent.packet.log_pos?

Can I get the real last position and log file read from the binlog?

Thanks in advance

@mlaug
Copy link

mlaug commented May 19, 2014

I have the same issue, binlog file is used correctly, but not the binlog position

@bjoernhaeuser
Copy link
Collaborator

The position in the event is (afaics) the position of the next event in the stream. Does this answer your question?

@julien-duponchelle
Copy link
Owner

I close the issue don't hesitate to reopen if the anwser from @bjoernhaeuser doesn't respond to the question

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

No branches or pull requests

4 participants