Skip to content

Commit 2e439b6

Browse files
author
Chungeun Choi
authored
Fix parsing of incorrect bytes in 'extradata' for 'rows event' (#469)
1 parent fcc447b commit 2e439b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysqlreplication/row_event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs)
6363

6464
# ndb information
6565
if self.extra_data_type == 0:
66-
self.nbd_info_length, self.nbd_info_format = struct.unpack('<BB', self.packet.read(1))
66+
self.nbd_info_length, self.nbd_info_format = struct.unpack('<BB', self.packet.read(2))
6767
self.nbd_info = self.packet.read(self.nbd_info_length - 2)
6868
# partition information
6969
elif self.extra_data_type == 1:

0 commit comments

Comments
 (0)