58
func sanitizeExecutionInfo(
59
executionInfo *persistencespb.WorkflowExecutionInfo,
61
>
executionInfo.WorkflowExecutionTimerTaskStatus = TimerTaskStatusNone
62
>
executionInfo.LastFirstEventTxnId = common.EmptyEventTaskID
63
>
executionInfo.CloseVisibilityTaskId = common.EmptyEventTaskID
64
>
executionInfo.CloseTransferTaskId = common.EmptyEventTaskID
65
>
// TODO: after adding cluster to clock info, no need to reset clock here
66
>
executionInfo.ParentClock = nil
67
>
68
>
// Timer tasks are generated locally, do not sync them.
69
>
executionInfo.StateMachineTimers = nil
70
>
executionInfo.TaskGenerationShardClockTimestamp = common.EmptyEventTaskID
71
>
}
72
73
func sanitizeChildExecutionInfo(
74
pendingChildInfo map[int64]*persistencespb.ChildExecutionInfo,
76
>
for _, childExecutionInfo := range pendingChildInfo {
77
childExecutionInfo.Clock = nil
78
}