Skip to content

Commit 0dd2b6b

Browse files
committed
Remove unused history event check (#3373)
1 parent 0fcc1b6 commit 0dd2b6b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

service/history/workflow/context.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,16 +672,13 @@ func (c *ContextImpl) SetWorkflowExecution(ctx context.Context, now time.Time) (
672672
}
673673
}()
674674

675-
resetWorkflowSnapshot, resetWorkflowEventsSeq, err := c.MutableState.CloseTransactionAsSnapshot(
675+
resetWorkflowSnapshot, _, err := c.MutableState.CloseTransactionAsSnapshot(
676676
now,
677677
TransactionPolicyPassive,
678678
)
679679
if err != nil {
680680
return err
681681
}
682-
if len(resetWorkflowEventsSeq) != 0 {
683-
return serviceerror.NewInternal("SetWorkflowExecution encountered new events")
684-
}
685682

686683
resetWorkflowSnapshot.ExecutionInfo.ExecutionStats = &persistencespb.ExecutionStats{
687684
HistorySize: c.GetHistorySize(),

0 commit comments

Comments
 (0)