Skip to content

Commit

Permalink
Keep the slot moving (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Oct 30, 2023
1 parent 23aa623 commit 3f10c9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ func (p *PostgresCDCSource) consumeStream(
clientXLogPos = xld.WALStart
records.UpdateLatestCheckpoint(int64(clientXLogPos))
}

if len(localRecords) == 0 {
// given that we have no records it is safe to update the flush wal position
// to the clientXLogPos. clientXLogPos can be moved forward due to PKM messages.
consumedXLogPos = clientXLogPos
}
}
}
}
Expand Down

0 comments on commit 3f10c9c

Please sign in to comment.