Skip to content

Commit

Permalink
Don't call GetSlotInfo in HandleSlotInfo, races for c.conn
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 8, 2024
1 parent dc00a58 commit a395c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ func (c *PostgresConnector) HandleSlotInfo(
}
defer conn.Close(ctx)

slotInfo, err := c.GetSlotInfo(slotName)
slotInfo, err := getSlotInfo(ctx, conn, slotName, c.config.Database)
if err != nil {
slog.WarnContext(ctx, "warning: failed to get slot info", slog.Any("error", err))
return err
Expand Down

0 comments on commit a395c50

Please sign in to comment.