app/vmselect/promql: prevent from cannot unmarshal timeseries from rollupResultCache panic after the upgrade to v1.89.0

The issue has been introduced in 0af9e2b693
This commit is contained in:
Aliaksandr Valialkin 2023-03-12 19:09:02 -07:00
parent dedac538c6
commit 1050d6bc0f
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -395,7 +395,7 @@ func mustSaveRollupResultCacheKeyPrefix(path string) {
var tooBigRollupResults = metrics.NewCounter("vm_too_big_rollup_results_total")
// Increment this value every time the format of the cache changes.
const rollupResultCacheVersion = 8
const rollupResultCacheVersion = 9
func marshalRollupResultCacheKey(dst []byte, at *auth.Token, expr metricsql.Expr, window, step int64, etfs [][]storage.TagFilter) []byte {
dst = append(dst, rollupResultCacheVersion)