247
err = m.persistence.UpdateWorkflowExecution(ctx, newRequest)
248
switch err.(type) {
250
>
m.deleteHistoryTasks(ctx, request.ShardID, updateMutation.BestEffortDeleteTasks, updateMutation.ExecutionInfo.WorkflowId)
251
>
m.addXDCCacheKV(updateWorkflowXDCKVs)
252
>
m.addXDCCacheKV(newWorkflowXDCKVs)
253
>
return &UpdateWorkflowExecutionResponse{
254
>
UpdateMutableStateStats: *statusOfInternalWorkflowMutation(
255
>
&newRequest.UpdateWorkflowMutation,
256
>
updateWorkflowHistoryDiff,
257
>
),
258
>
NewMutableStateStats: statusOfInternalWorkflowSnapshot(
259
>
newRequest.NewWorkflowSnapshot,
260
>
newWorkflowHistoryDiff,
261
>
),
262
>
}, nil
263
case *CurrentWorkflowConditionFailedError,
264
*WorkflowConditionFailedError,