Commit 01ad0d5
authored
new map if SubStateMachinesByType is nil (temporalio#7653)
## What changed?
create new map if SubStateMachinesByType is nil after applySnapshot.
## Why?
SubStateMachinesByType in replication task might be nil (due to
proto.Clone of empty map).
## How did you test it?
unit test and local test.
## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->1 parent 6f48ae8 commit 01ad0d5
File tree
2 files changed
+6
-0
lines changed- service/history/workflow
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
578 | 582 | | |
579 | 583 | | |
580 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4459 | 4459 | | |
4460 | 4460 | | |
4461 | 4461 | | |
| 4462 | + | |
4462 | 4463 | | |
4463 | 4464 | | |
| 4465 | + | |
4464 | 4466 | | |
4465 | 4467 | | |
4466 | 4468 | | |
| |||
0 commit comments