Skip to content

Commit a44681d

Browse files
danielnelsonidohalevi
authored andcommitted
Remove tail cleanup call to avoid double decrement (influxdata#6089)
1 parent a233af2 commit a44681d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

plugins/inputs/logparser/logparser.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ func (l *LogParserPlugin) Stop() {
294294
if err != nil {
295295
log.Printf("E! Error stopping tail on file %s\n", t.Filename)
296296
}
297-
t.Cleanup()
298297
}
299298
close(l.done)
300299
l.wg.Wait()

plugins/inputs/tail/tail.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"sync"
1010

1111
"github.com/influxdata/tail"
12-
1312
"github.com/influxdata/telegraf"
1413
"github.com/influxdata/telegraf/internal/globpath"
1514
"github.com/influxdata/telegraf/plugins/inputs"
@@ -213,9 +212,6 @@ func (t *Tail) Stop() {
213212
}
214213
}
215214

216-
for _, tailer := range t.tailers {
217-
tailer.Cleanup()
218-
}
219215
t.wg.Wait()
220216
}
221217

0 commit comments

Comments
 (0)