Skip to content

Commit

Permalink
Merge pull request #623 from Zaynullin/fake-rotate-event-check-v0-45-1
Browse files Browse the repository at this point in the history
Fixing an issue of initializing table map when fake rotate event catching for Mysql versions 5.5, 5.6, 5.7
  • Loading branch information
sean-k1 authored Oct 10, 2024
2 parents 022cd15 + 25c9766 commit 6b51b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymysqlreplication/binlogstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ def fetchone(self):
# invalidates all our cached table id to schema mappings. This means we have to load them all
# again for each logfile which is potentially wasted effort but we can't really do much better
# without being broken in restart case
self.table_map = {}
if binlog_event.timestamp != 0:
self.table_map = {}
elif binlog_event.log_pos:
self.log_pos = binlog_event.log_pos

Expand Down

0 comments on commit 6b51b98

Please sign in to comment.