rust-mysql-binlog icon indicating copy to clipboard operation
rust-mysql-binlog copied to clipboard

Management TableMapping in case of RotateEvent

Open darnuria opened this issue 2 years ago • 0 comments

Hi!

Just read the sources and found that in this crate, the RotateEvent change of tables id is not managed.

Can lead to some data-corruptions, it's mostly a problem when doing networked binlog usage, may be out-of-scope if the goal is just following binlog files. table_id are memory id persistent only during the server is running.

See for details: https://github.com/julien-duponchelle/python-mysql-replication/blob/1376c6be032a46b396c6991133b958271604e829/pymysqlreplication/binlogstream.py#L507-L521

darnuria avatar Jan 18 '23 15:01 darnuria