We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbae27f commit e8bb235Copy full SHA for e8bb235
pymysqlreplication/event.py
@@ -58,10 +58,8 @@ def _verify_event(self):
58
data = self.packet.read(19 + self.event_size)
59
footer = self.packet.read(4)
60
byte_data = zlib.crc32(data).to_bytes(4, byteorder="little")
61
- if byte_data == footer:
62
- self._is_event_valid = True
63
- else:
64
- self._is_event_valid = False
+ self._is_event_valid = True if byte_data == footer else False
+ if not self._is_event_valid:
65
logging.error(
66
f"An CRC32 has failed for the event type {self.event_type}, "
67
"indicating a potential integrity issue with the data."
0 commit comments