vmselect: fix panic/incorrect tenant in key

Signed-off-by: Andrei Baidarov <abaidarov@yandex.ru>
This commit is contained in:
Andrei Baidarov 2024-11-18 17:07:09 +01:00
parent 0babe43391
commit 9414c5cfaa
No known key found for this signature in database
GPG key ID: 411A230F02C31DFD

View file

@ -263,7 +263,7 @@ func (rrc *rollupResultCache) GetSeries(qt *querytracer.Tracer, ec *EvalConfig,
if !ok {
mi.RemoveKey(key)
metainfoBuf = mi.Marshal(metainfoBuf[:0])
bb.B = marshalRollupResultCacheKeyForSeries(bb.B[:0], ec.AuthTokens[0], expr, window, ec.Step, ec.EnforcedTagFilterss)
bb.B = marshalRollupResultCacheKeyForSeries(bb.B[:0], at, expr, window, ec.Step, ec.EnforcedTagFilterss)
rrc.c.Set(bb.B, metainfoBuf)
return nil, ec.Start
}