Fix metric buffer limit in internal plugin after reload

This commit is contained in:
Daniel Nelson 2018-02-19 20:54:02 -08:00
parent 495d9700f6
commit 1fc8b2c71e
2 changed files with 2 additions and 1 deletions

View File

@ -72,6 +72,7 @@
### Bugfixes
- [#1896](https://github.com/influxdata/telegraf/issues/1896): Fix various mysql data type conversions.
- [#3810](https://github.com/influxdata/telegraf/issues/3810): Fix metric buffer limit in internal plugin after reload.
## v1.5.3 [unreleased]

View File

@ -87,7 +87,7 @@ func NewRunningOutput(
map[string]string{"output": name},
),
}
ro.BufferLimit.Incr(int64(ro.MetricBufferLimit))
ro.BufferLimit.Set(int64(ro.MetricBufferLimit))
return ro
}