We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0bf419 commit 67d3a71Copy full SHA for 67d3a71
pymysqlreplication/binlogstream.py
@@ -419,8 +419,7 @@ def __connect_to_stream(self):
419
self.__connected_stream = True
420
421
def fetchone(self):
422
- should_continue = True
423
- while should_continue:
+ while True:
424
if not self.__connected_stream:
425
self.__connect_to_stream()
426
@@ -474,9 +473,9 @@ def fetchone(self):
474
473
elif binlog_event.log_pos:
475
self.log_pos = binlog_event.log_pos
476
477
- if self.end_log_pos and self.log_pos >= self.end_log_pos:
+ if self.end_log_pos and self.log_pos > self.end_log_pos:
478
# We're currently at, or past, the specified end log position.
479
- should_continue = False
+ return None
480
481
# This check must not occur before clearing the ``table_map`` as a
482
# result of a RotateEvent.
0 commit comments