Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Oct 22, 2024
1 parent f2d8b1b commit 2e030a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/activities/snapshot_activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (a *SnapshotActivity) SetupReplication(

for {
var slotName string
if err := a.CatalogPool.QueryRow(ctx, "select slot_name from snapshot_names").Scan(&slotName); err == nil && slotName != "" {
if err := a.CatalogPool.QueryRow(ctx, "select slot_name from snapshot_names where flow_name = $1", config.FlowJobName).Scan(&slotName); err == nil && slotName != "" {
if err := conn.ExecuteCommand(
ctx,
"select pg_drop_replication_slot($1)",
Expand Down

0 comments on commit 2e030a7

Please sign in to comment.