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 df80fa6099
commit 8147d60973
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
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
}