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

Commit

Permalink
Clarify commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-pie committed Jul 25, 2019
1 parent 43c8ab8 commit 24f877a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tap_postgres/sync_strategies/logical_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ def consume_message(streams, state, msg, time_extracted, conn_info, end_lsn):
raise Exception("incorrectly attempting to flush an lsn({}) > end_lsn({})".format(msg.data_start, end_lsn))

# Flush Postgres log up to lsn received in current run
# LOGGER.info("Sending feedback to server with flush_lsn = %s", msg.data_start)
# This is the behaviour of the original tap-progres
# The Pipelinewise version flushes only at the start of the next run
# This is to ensure the data has been comitted on the destination
# LOGGER.info("Sending flush_lsn = {} to source server".format(msg.data_start))
# msg.cursor.send_feedback(flush_lsn=msg.data_start)

return state
Expand Down

0 comments on commit 24f877a

Please sign in to comment.