Skip to content

Commit

Permalink
Remove tail cleanup call to avoid double decrement (influxdata#6089)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and idohalevi committed Sep 23, 2020
1 parent a233af2 commit a44681d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion plugins/inputs/logparser/logparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ func (l *LogParserPlugin) Stop() {
if err != nil {
log.Printf("E! Error stopping tail on file %s\n", t.Filename)
}
t.Cleanup()
}
close(l.done)
l.wg.Wait()
Expand Down
4 changes: 0 additions & 4 deletions plugins/inputs/tail/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"sync"

"github.com/influxdata/tail"

"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/internal/globpath"
"github.com/influxdata/telegraf/plugins/inputs"
Expand Down Expand Up @@ -213,9 +212,6 @@ func (t *Tail) Stop() {
}
}

for _, tailer := range t.tailers {
tailer.Cleanup()
}
t.wg.Wait()
}

Expand Down

0 comments on commit a44681d

Please sign in to comment.