Skip to content

Commit

Permalink
[cdc] treat all pkms as reply_requested
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 16, 2024
1 parent 12aa300 commit 5d43787
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,15 +495,12 @@ func PullCdcRecords[Items model.Items](
return fmt.Errorf("ParsePrimaryKeepaliveMessage failed: %w", err)
}

logger.Debug("Primary Keepalive Message", slog.Any("data", pkm))
logger.Info("Primary Keepalive Message", slog.Any("data", pkm))

if pkm.ServerWALEnd > clientXLogPos {
clientXLogPos = pkm.ServerWALEnd
}

if pkm.ReplyRequested {
pkmRequiresResponse = true
}
pkmRequiresResponse = true

case pglogrepl.XLogDataByteID:
xld, err := pglogrepl.ParseXLogData(msg.Data[1:])
Expand Down

0 comments on commit 5d43787

Please sign in to comment.