Skip to content

Commit

Permalink
Bugfix, reset mutable state empty UUID (#784)
Browse files Browse the repository at this point in the history
* add .vscode to .gitignore

* bugfix: empty uuid in reset mutable state
  • Loading branch information
wxing1292 authored May 26, 2018
1 parent 80ef7cb commit 7e5afe5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.cov
*.html
.tmp/
.vscode
/vendor
/cadence
.DS_Store
Expand Down
12 changes: 10 additions & 2 deletions common/persistence/cassandraPersistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -1635,13 +1635,21 @@ func (d *cassandraPersistence) ResetMutableState(request *ResetMutableStateReque
lastReplicationInfo[k] = createReplicationInfoMap(v)
}

parentDomainID := emptyDomainID
if executionInfo.ParentDomainID != "" {
parentDomainID = executionInfo.ParentDomainID
}
parentRunID := emptyRunID
if executionInfo.ParentRunID != "" {
parentRunID = executionInfo.ParentRunID
}
batch.Query(templateUpdateWorkflowExecutionWithReplicationQuery,
executionInfo.DomainID,
executionInfo.WorkflowID,
executionInfo.RunID,
executionInfo.ParentDomainID,
parentDomainID,
executionInfo.ParentWorkflowID,
executionInfo.ParentRunID,
parentRunID,
executionInfo.InitiatedID,
executionInfo.CompletionEvent,
executionInfo.TaskList,
Expand Down

0 comments on commit 7e5afe5

Please sign in to comment.