Skip to content

Commit

Permalink
Fix issue where checkAndClearTimerFiredEvent returns wrong event (cad…
Browse files Browse the repository at this point in the history
  • Loading branch information
meiliang86 authored Jun 13, 2019
1 parent d6fc587 commit 3302bb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/history/mutableStateBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ func checkAndClearTimerFiredEvent(
if timerFiredIdx == -1 {
return events, nil
}
return append(events[:timerFiredIdx], events[timerFiredIdx+1:]...), events[timerFiredIdx]

timerEvent := events[timerFiredIdx]
return append(events[:timerFiredIdx], events[timerFiredIdx+1:]...), timerEvent
}

func convertUpdateActivityInfos(inputs map[*persistence.ActivityInfo]struct{}) []*persistence.ActivityInfo {
Expand Down

0 comments on commit 3302bb8

Please sign in to comment.