Skip to content

Commit

Permalink
immediate return
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Nov 21, 2023
1 parent 8274773 commit 39bdc9d
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 @@ -265,6 +265,12 @@ func (p *PostgresCDCSource) consumeStream(
req.FlowJobName,
len(localRecords),
)

if !p.commitLock {
// immediate return if we are not waiting for a commit
return nil
}

waitingForCommit = true
} else {
log.Infof("[%s] standby deadline reached, no records accumulated, continuing to wait",
Expand Down

0 comments on commit 39bdc9d

Please sign in to comment.