Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
[AP-483] Update bookmark only if binlog position is valid (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti authored Jan 21, 2020
1 parent 36231e6 commit 7dbb85b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup

setup(name='pipelinewise-tap-mysql',
version='1.1.4',
version='1.1.5',
description='Singer.io tap for extracting data from MySQL - PipelineWise compatible',
author='Stitch',
url='https://github.com/transferwise/pipelinewise-tap-mysql',
Expand Down
9 changes: 5 additions & 4 deletions tap_mysql/sync_strategies/binlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,11 @@ def _run_binlog_sync(mysql_conn, reader, binlog_streams_map, state):
singer.write_message(singer.StateMessage(value=copy.deepcopy(state)))

# Update singer bookmark at the last time to point it the the last processed binlog event
state = update_bookmarks(state,
binlog_streams_map,
log_file,
log_pos)
if log_file and log_pos:
state = update_bookmarks(state,
binlog_streams_map,
log_file,
log_pos)


def sync_binlog_stream(mysql_conn, config, binlog_streams, state):
Expand Down

0 comments on commit 7dbb85b

Please sign in to comment.