mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vminsert/influx: properly handle the case when certain labels with empty values are removed by ApplyRelabeling() call
Previously this could lead to `out of range` panic
This commit is contained in:
parent
14dc426b45
commit
f9b38f7f2d
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ func insertRows(at *auth.Token, db string, rows []parser.Row, mayOverrideAccount
|
|||
}
|
||||
labels = ic.Labels
|
||||
if !hasRelabeling {
|
||||
labels = labels[labelsLen : labelsLen+1]
|
||||
labels = labels[len(labels)-1:]
|
||||
}
|
||||
ic.MetricNameBuf = ic.MetricNameBuf[:metricNameBufLen]
|
||||
for i := range labels {
|
||||
|
|
Loading…
Reference in a new issue