Skip to content

Commit

Permalink
Fixing an issue of initializing table map when fake rotate event catc…
Browse files Browse the repository at this point in the history
…hing for Mysql versions 5.5, 5.6, 5.7
  • Loading branch information
Ильдар Зайнуллин committed Oct 3, 2024
1 parent 022cd15 commit 25c9766
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 25c9766

Please sign in to comment.