python-mysql-replication
python-mysql-replication copied to clipboard
Add XAPrepareEvent, parse last_committed & sequence_number of GtidEvent
#255
Dear maintainers, this PR add XAPrepareEvent, parse last_committed & sequence_number of GtidEvent
- XAPrepareEvent is generated by XA PREPARE or XA COMMIT ... ONE PHASE. XA protocol is widely used in sharding proxy.
- last_committed and sequence_number is used for Parallel applier, they are required if I want to implement parallel replication myself.
These features only supported in MySQL 5.7, to keep compatible with 5.6, I need to parse mysql version from FormatDescriptionEvent.
Thanks for your review!
Hi @julien-duponchelle, could you take another look for this please? Happy to make updates to this patch as needed.
Thanks I will merge that and release a version
Hi @julien-duponchelle, should this have been merged into main instead of master?
Oh sorry I did a new release