leonardBang commented on code in PR #3349:
URL: https://github.com/apache/flink-cdc/pull/3349#discussion_r1613201109


##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/reader/PostgresSourceReader.java:
##########
@@ -104,6 +108,10 @@ public List<SourceSplitBase> snapshotState(long 
checkpointId) {
 
     @Override
     public void notifyCheckpointComplete(long checkpointId) throws Exception {
+        this.checkpointCount = (this.checkpointCount + 1) % 
this.checkpointCycle;

Review Comment:
   +1 for @loserwang1024 ‘s comment



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to