Skip to content

Commit

Permalink
DBZ-7717 LogPositionValidator is no more needed in Db2Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvitale authored and jpechane committed Apr 5, 2024
1 parent 016a78e commit 791633f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/io/debezium/connector/db2/Db2Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public class Db2Connection extends JdbcConnection {
*/
public Db2Connection(JdbcConfiguration config) {
super(config, FACTORY, QUOTED_CHARACTER, QUOTED_CHARACTER);
this.logPositionValidator = this::validateLogPosition;
lsnToInstantCache = new BoundedConcurrentHashMap<>(100);
realDatabaseName = retrieveRealDatabaseName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ChangeEventSourceCoordinator<Db2Partition, Db2OffsetContext> start(Config

final SnapshotterService snapshotterService = connectorConfig.getServiceRegistry().tryGetService(SnapshotterService.class);

validateAndLoadSchemaHistory(connectorConfig, metadataConnection, previousOffsets, schema,
validateAndLoadSchemaHistory(connectorConfig, metadataConnection::validateLogPosition, previousOffsets, schema,
snapshotterService.getSnapshotter());

taskContext = new Db2TaskContext(connectorConfig, schema);
Expand Down

0 comments on commit 791633f

Please sign in to comment.