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 e0b520e841
commit d2270f1397
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -442,7 +442,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, expr metricsql.Expr, window, step int64, etfs [][]storage.TagFilter) []byte {
dst = append(dst, rollupResultCacheVersion)