Skip to content

Commit e572c4d

Browse files
committed
[core] Fix iterator child reparenting bug which broke constraints
1 parent c34e562 commit e572c4d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/workflow/aggregatorrole.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ func (r *aggregatorRole) copy() copyable {
130130
roleBase: *r.roleBase.copy().(*roleBase),
131131
aggregator: *r.aggregator.copy().(*aggregator),
132132
}
133+
for i := 0; i < len(rCopy.Roles); i++ {
134+
rCopy.Roles[i].setParent(&rCopy)
135+
}
133136
return &rCopy
134137
}
135138

0 commit comments

Comments
 (0)