Skip to content

Commit

Permalink
Patch a change to support reset 2dc workflow (cadence-workflow#3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
yux0 authored Nov 20, 2020
1 parent 0912eef commit 4b75445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service/history/execution/mutable_state_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ func (e *mutableStateBuilder) UpdateCurrentVersion(

func (e *mutableStateBuilder) GetCurrentVersion() int64 {

// TODO: remove this after all 2DC workflows complete
if e.replicationState != nil {
return e.replicationState.CurrentVersion
}

if e.versionHistories != nil {
return e.currentVersion
}
Expand Down

0 comments on commit 4b75445

Please sign in to comment.