Skip to content

Commit

Permalink
Revert "for eventhub disable commit lock (#546)" (#551)
Browse files Browse the repository at this point in the history
This reverts commit 41dfd4f.
  • Loading branch information
iskakaushik authored Oct 21, 2023
1 parent 9a3e1ee commit eb4024d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions flow/connectors/postgres/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,7 @@ func (p *PostgresCDCSource) processMessage(batch *model.RecordBatch, xld pglogre
case *pglogrepl.BeginMessage:
log.Debugf("BeginMessage => FinalLSN: %v, XID: %v", msg.FinalLSN, msg.Xid)
log.Debugf("Locking PullRecords at BeginMessage, awaiting CommitMessage")
if utils.GetEnvBool("PEERDB_BETA_EVENTHUB_PUSH_ASYNC", false) {
p.commitLock = false
} else {
p.commitLock = true
}
p.commitLock = true
case *pglogrepl.InsertMessage:
return p.processInsertMessage(xld.WALStart, msg)
case *pglogrepl.UpdateMessage:
Expand Down

0 comments on commit eb4024d

Please sign in to comment.