414
err = m.persistence.ConflictResolveWorkflowExecution(ctx, newRequest)
415
switch err.(type) {
417
>
m.addXDCCacheKV(resetWorkflowXDCKVs)
418
>
m.addXDCCacheKV(newWorkflowXDCKVs)
419
>
m.addXDCCacheKV(currentWorkflowXDCKVs)
420
>
return &ConflictResolveWorkflowExecutionResponse{
421
>
ResetMutableStateStats: *statusOfInternalWorkflowSnapshot(
422
>
&newRequest.ResetWorkflowSnapshot,
423
>
resetWorkflowHistoryDiff,
424
>
),
425
>
NewMutableStateStats: statusOfInternalWorkflowSnapshot(
426
>
newRequest.NewWorkflowSnapshot,
427
>
newWorkflowHistoryDiff,
428
>
),
429
>
CurrentMutableStateStats: statusOfInternalWorkflowMutation(
430
>
newRequest.CurrentWorkflowMutation,
431
>
currentWorkflowHistoryDiff,
432
>
),
433
>
}, nil
434
case *CurrentWorkflowConditionFailedError,
435
*WorkflowConditionFailedError,