1029
1030
if !applied {
1032
>
runID: setSnapshot.RunID,
1033
>
// dbVersion is for CAS, so the db record version will be set to `setSnapshot.DBRecordVersion`
1034
>
// while CAS on `setSnapshot.DBRecordVersion - 1`
1035
>
dbVersion: setSnapshot.DBRecordVersion - 1,
1036
>
nextEventID: setSnapshot.Condition,
1037
>
}}
1038
>
return convertErrors(
1039
>
conflictRecord,
1040
>
conflictIter,
1041
>
"", // SetWorkflowExecution does not update current record
1042
>
request.ShardID,
1043
>
request.RangeID,
1044
>
"", // SetWorkflowExecution does not update current record
1045
>
executionCASConditions,
1046
>
)
1047
>
}
1048
return nil
1049
}