Skip to content

Commit

Permalink
protect deleteSingalRequested with condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vancexu committed Jan 22, 2018
1 parent f29dec1 commit 3a996e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/persistence/cassandraPersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ const (
`and workflow_id = ? ` +
`and run_id = ? ` +
`and visibility_ts = ? ` +
`and task_id = ? `
`and task_id = ? ` +
`IF next_event_id = ?`

templateGetTransferTasksQuery = `SELECT transfer ` +
`FROM executions ` +
Expand Down Expand Up @@ -2071,7 +2072,8 @@ func (d *cassandraPersistence) updateSignalsRequested(batch *gocql.Batch, signal
workflowID,
runID,
defaultVisibilityTimestamp,
rowTypeExecutionTaskID)
rowTypeExecutionTaskID,
condition)
}
}

Expand Down

0 comments on commit 3a996e2

Please sign in to comment.