744
ctx context.Context,
745
request *p.InternalConflictResolveWorkflowExecutionRequest,
747
>
batch := d.Session.NewBatch(gocql.LoggedBatch).WithContext(ctx)
748
>
749
>
currentWorkflow := request.CurrentWorkflowMutation
750
>
resetWorkflow := request.ResetWorkflowSnapshot
751
>
newWorkflow := request.NewWorkflowSnapshot
752
>
753
>
shardID := request.ShardID
754
>
755
>
namespaceID := resetWorkflow.NamespaceID
756
>
workflowID := resetWorkflow.WorkflowID
757
>
758
>
var currentRunID string
759
>
760
>
var startTime *time.Time
761
>
if currentWorkflow != nil && currentWorkflow.ExecutionState != nil {
762
startTime = timestamp.TimeValuePtr(currentWorkflow.ExecutionState.StartTime)
763
}
764
766
>
767
>
switch request.Mode {
768
case p.ConflictResolveWorkflowModeBypassCurrent:
769
if err := d.assertNotCurrentExecution(