From 5955efaf30613426e46a0c24779798764da71599 Mon Sep 17 00:00:00 2001 From: wxing1292 Date: Tue, 25 Sep 2018 11:49:14 -0700 Subject: [PATCH] Non global domain should use empty event version (#1142) --- service/history/mutableStateBuilder.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/history/mutableStateBuilder.go b/service/history/mutableStateBuilder.go index a1a899bd373..6babe8dd82e 100644 --- a/service/history/mutableStateBuilder.go +++ b/service/history/mutableStateBuilder.go @@ -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 }