Skip to content

Commit

Permalink
Keep the slot moving
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 30, 2023
1 parent 7e1723e commit fdbb8de
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.LastCheckPointID = 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 fdbb8de

Please sign in to comment.