diff --git a/flow/connectors/postgres/cdc.go b/flow/connectors/postgres/cdc.go index fe30d74c6b..9bfff285ae 100644 --- a/flow/connectors/postgres/cdc.go +++ b/flow/connectors/postgres/cdc.go @@ -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: