File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ func (f *Filter) Transform(input []config.GenericMap) []config.GenericMap {
3232 log .Debugf ("f = %v" , f )
3333 output := make ([]config.GenericMap , 0 )
3434 for _ , entry := range input {
35+ // copy input entry before transform to avoid alteration on parallel stages
3536 outputEntry := entry .Copy ()
3637 addToOutput := true
3738 for _ , rule := range f .Rules {
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ func (n *Network) Transform(input []config.GenericMap) []config.GenericMap {
4949}
5050
5151func (n * Network ) TransformEntry (inputEntry config.GenericMap ) config.GenericMap {
52+ // copy input entry before transform to avoid alteration on parallel stages
5253 outputEntry := inputEntry .Copy ()
5354
5455 for _ , rule := range n .Rules {
You can’t perform that action at this time.
0 commit comments