735
// track the child workflows initiated after reset.
736
// This will be saved in the parent workflow (in execution info) and used by the parent later to determine how to start these child workflows again.
737
>
childrenInitializedAfterReset := make(map[string]*persistencespb.ResetChildInfo)
workflow_resetter.go
738
>
739
>
// First, special handling of remaining events for base workflow
740
>
nextRunID, err := r.reapplyEventsFromBranch(
741
>
ctx,
742
>
resetMutableState,
743
>
baseRebuildNextEventID,
744
>
baseNextEventID,
745
>
baseBranchToken,
746
>
resetReapplyExcludeTypes,
747
>
allowResetWithPendingChildren,
748
>
childrenInitializedAfterReset,
749
>
)
750
>
switch err.(type) {
751
>
case nil:
752
// noop
753
case *serviceerror.DataLoss: