Skip to content

Commit

Permalink
more fixes to handling logrepl messages
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Sep 30, 2023
1 parent 6961482 commit 1120236
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ func (p *PostgresCDCSource) consumeStream(
log.Debugf("Primary Keepalive Message => ServerWALEnd: %s ServerTime: %s ReplyRequested: %t",
pkm.ServerWALEnd, pkm.ServerTime, pkm.ReplyRequested)

if pkm.ServerWALEnd > clientXLogPos {
clientXLogPos = pkm.ServerWALEnd
}
if pkm.ReplyRequested {
nextStandbyMessageDeadline = time.Time{}
}
Expand Down

0 comments on commit 1120236

Please sign in to comment.