Skip to content

Commit

Permalink
modify sqlserver cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxiaojian committed Aug 21, 2023
1 parent 27f0bc2 commit 3666c11
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import io.debezium.connector.sqlserver.SqlServerDatabaseSchema;
import io.debezium.connector.sqlserver.SqlServerOffsetContext;
import io.debezium.pipeline.EventDispatcher;
import io.debezium.pipeline.metrics.StreamingChangeEventSourceMetrics;
import io.debezium.pipeline.source.AbstractSnapshotChangeEventSource;
import io.debezium.pipeline.source.spi.ChangeEventSource;
import io.debezium.pipeline.source.spi.SnapshotProgressListener;
Expand Down Expand Up @@ -159,7 +160,8 @@ protected AbstractSnapshotChangeEventSource.SnapshotContext prepare(
private void createDataEvents(SqlSeverSnapshotContext snapshotContext, TableId tableId)
throws Exception {
EventDispatcher.SnapshotReceiver snapshotReceiver =
dispatcher.getSnapshotChangeEventReceiver();
dispatcher.getIncrementalSnapshotChangeEventReceiver(
StreamingChangeEventSourceMetrics.NO_OP);
log.debug("Snapshotting table {}", tableId);
createDataEventsForTable(
snapshotContext, snapshotReceiver, databaseSchema.tableFor(tableId));
Expand Down

0 comments on commit 3666c11

Please sign in to comment.