Skip to content

Commit

Permalink
[hotfix][mysql] remove unused code (#2231)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallkop authored and ruanhang1993 committed Jul 20, 2023
1 parent 67c445f commit bcd2ae9
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
* Copied from Debezium project to fix
* https://github.com/ververica/flink-cdc-connectors/issues/1944.
*
* <p>Line 1428-1434 : Adjust GTID merging logic to support recovering from job which previously
* <p>Line 1427-1433 : Adjust GTID merging logic to support recovering from job which previously
* specifying starting offset on start.
*
* <p>Line 1486 : Add more error details for some exceptions.
* <p>Line 1485 : Add more error details for some exceptions.
*/
public class MySqlStreamingChangeEventSource
implements StreamingChangeEventSource<MySqlPartition, MySqlOffsetContext> {
Expand Down Expand Up @@ -123,7 +123,6 @@ public class MySqlStreamingChangeEventSource
private final MySqlConnection connection;
private final EventDispatcher<MySqlPartition, TableId> eventDispatcher;
private final ErrorHandler errorHandler;
private boolean isRestoredFromCheckpoint = false;

@SingleThreadAccess("binlog client thread")
private Instant eventTimestamp;
Expand Down Expand Up @@ -1563,10 +1562,6 @@ public void onEventDeserializationFailure(BinaryLogClient client, Exception ex)
}
}

protected void setRestoredFromCheckpoint() {
this.isRestoredFromCheckpoint = true;
}

@FunctionalInterface
private interface TableIdProvider<E extends EventData> {
TableId getTableId(E data);
Expand Down

0 comments on commit bcd2ae9

Please sign in to comment.