Skip to content

Commit

Permalink
Non global domain should use empty event version (cadence-workflow#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 authored Sep 25, 2018
1 parent 5c93511 commit 5955efa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/history/mutableStateBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,7 @@ func (e *mutableStateBuilder) CreateNewHistoryEventWithTimestamp(eventType workf
historyEvent.EventId = common.Int64Ptr(eventID)
historyEvent.Timestamp = ts
historyEvent.EventType = common.EventTypePtr(eventType)
if e.replicationState != nil {
historyEvent.Version = common.Int64Ptr(e.replicationState.CurrentVersion)
}
historyEvent.Version = common.Int64Ptr(e.GetCurrentVersion())

return historyEvent
}
Expand Down

0 comments on commit 5955efa

Please sign in to comment.