Skip to content

Commit

Permalink
shallow copy alert batch points as well
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielc committed May 19, 2017
1 parent 9dc9500 commit 4140576
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ func (a *AlertNode) runAlert([]byte) error {
a.a.IdField != "" ||
a.a.DurationField != "" ||
a.a.MessageField != "" {
b.Points = b.ShallowCopyPoints()
for i := range b.Points {
if a.a.LevelTag != "" || a.a.IdTag != "" {
b.Points[i].Tags = b.Points[i].Tags.Copy()
Expand Down

0 comments on commit 4140576

Please sign in to comment.