EasyPost / rust-mysql-binlog

Rust implementation of the MySQL binlog format
ISC License
102 stars 18 forks source link

expose logical timestamp information in EventIterator #3

Closed Roguelazer closed 4 years ago

Roguelazer commented 4 years ago

This exposes the logical_clock dependency information in the binlogs, present in 5.7 or later. When run against 5.6 binlogs, these fields are always None.

The last_committed field contains the binlog-relative LSN of the most recent parent transaction; the sequence_number field is the current transactions binlog-relative LSN. These are used for extracting concurrency in LOGICAL_CLOCK mode with multi-threaded replication.

There are a bunch more fields in 8.0, but we don't expose them because I don't have an 8.0 server to test with.