Skip to content

Commit

Permalink
Bugfix to pass in domainID with AppendHistory call to persistence (ca…
Browse files Browse the repository at this point in the history
…dence-workflow#126)

Pass in domainID with AppendHistory call as part of execution update.

Fix error handling issue to return the error if first update to
AppendHistory fails with an error.
  • Loading branch information
samarabbas authored Apr 10, 2017
1 parent f9d51a1 commit ed1f4d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/shardContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (s *shardContextImpl) AppendHistoryEvents(request *persistence.AppendHistor
}
}

return nil
return err0
}

func (s *shardContextImpl) GetLogger() bark.Logger {
Expand Down
1 change: 1 addition & 0 deletions service/history/workflowExecutionContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ func (c *workflowExecutionContext) updateWorkflowExecution(transferTasks []persi
}

if err0 := c.shard.AppendHistoryEvents(&persistence.AppendHistoryEventsRequest{
DomainID: c.domainID,
Execution: c.workflowExecution,
TransactionID: transactionID,
FirstEventID: firstEvent.GetEventId(),
Expand Down

0 comments on commit ed1f4d0

Please sign in to comment.