app/vminsert/influx: take into account all the tags for consistent hash calculations

This commit is contained in:
Aliaksandr Valialkin 2019-06-03 22:53:56 +03:00
parent db21d46417
commit ba58af9d8c

View File

@ -89,7 +89,6 @@ func (ctx *pushCtx) InsertRows(at *auth.Token, db string) error {
ctx.metricGroupBuf = append(ctx.metricGroupBuf[:0], r.Measurement...)
ctx.metricGroupBuf = append(ctx.metricGroupBuf, '.')
metricGroupPrefixLen := len(ctx.metricGroupBuf)
ic.Labels = ic.Labels[:0]
ic.AddLabel("", "placeholder")
placeholderLabel := &ic.Labels[len(ic.Labels)-1]
for j := range r.Fields {