Skip to content

Commit

Permalink
DBZ-7903 Align to core changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvitale committed Oct 31, 2024
1 parent 25d4f0c commit b321419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/debezium/connector/db2/Db2OffsetContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public Loader(Db2ConnectorConfig connectorConfig) {
public Db2OffsetContext load(Map<String, ?> offset) {
final Lsn changeLsn = Lsn.valueOf((String) offset.get(SourceInfo.CHANGE_LSN_KEY));
final Lsn commitLsn = Lsn.valueOf((String) offset.get(SourceInfo.COMMIT_LSN_KEY));
final SnapshotType snapshot = loadSnapshot((Map<String, Object>) offset);
boolean snapshotCompleted = Boolean.TRUE.equals(offset.get(SNAPSHOT_COMPLETED_KEY));
final SnapshotType snapshot = loadSnapshot(offset).orElse(null);
boolean snapshotCompleted = loadSnapshotCompleted(offset);

// only introduced in 0.10.Beta1, so it might be not present when upgrading from earlier versions
Long eventSerialNo = ((Long) offset.get(EVENT_SERIAL_NO_KEY));
Expand Down

0 comments on commit b321419

Please sign in to comment.