3575
}
3576
3578
>
exeInfo := ms.executionInfo
3579
>
resetPoints := exeInfo.AutoResetPoints.Points
3580
>
// List of all recent binary checksums associated with the workflow.
3581
>
recentBinaryChecksums := make([]string, 0, len(resetPoints))
3582
>
for _, rp := range resetPoints {
3583
>
if rp.BinaryChecksum != "" {
3584
>
recentBinaryChecksums = append(recentBinaryChecksums, rp.BinaryChecksum)
3585
>
}
3586
}
3587
>
checksumsPayload, err := sadefs.EncodeValue(recentBinaryChecksums, enumspb.INDEXED_VALUE_TYPE_KEYWORD_LIST)
mutable_state_impl.go
3588
>
if err != nil {
3589
return err
3590
}
3592
exeInfo.SearchAttributes = make(map[string]*commonpb.Payload, 1)
3593
}
3594
>
if proto.Equal(exeInfo.SearchAttributes[sadefs.BinaryChecksums], checksumsPayload) {
mutable_state_impl.go
3595
return nil // unchanged
3596
}
3597
>
ms.updateSearchAttributes(map[string]*commonpb.Payload{sadefs.BinaryChecksums: checksumsPayload})
mutable_state_impl.go
3598
>
return ms.taskGenerator.GenerateUpsertVisibilityTask()
3599
}
3600