fix: (outputs/sql) table existence cache (#10812)

This commit is contained in:
Ruoshan Huang 2022-06-02 03:05:37 +08:00 committed by GitHub
parent 91d50ee374
commit 354b651bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -204,8 +204,8 @@ func (p *SQL) Write(metrics []telegraf.Metric) error {
if err != nil {
return err
}
p.tables[tablename] = true
}
p.tables[tablename] = true
var columns []string
var values []interface{}