From cf29b6bca4cd1a2a7eccbd6b4bdae9680d6f0d31 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Tue, 12 Feb 2019 14:45:38 -0700 Subject: [PATCH] Convert TagValueSeriesIDCache to use string fields --- tsdb/tsi1/cache.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tsdb/tsi1/cache.go b/tsdb/tsi1/cache.go index 94fea328d8..309abc5f12 100644 --- a/tsdb/tsi1/cache.go +++ b/tsdb/tsi1/cache.go @@ -112,9 +112,9 @@ func (c *TagValueSeriesIDCache) Put(name, key, value []byte, ss *tsdb.SeriesIDSe // Create list item, and add to the front of the eviction list. listElement := c.evictor.PushFront(&seriesIDCacheElement{ - name: name, - key: key, - value: value, + name: string(name), + key: string(key), + value: string(value), SeriesIDSet: ss, }) @@ -214,9 +214,9 @@ func (c *TagValueSeriesIDCache) PrometheusCollectors() []prometheus.Collector { // seriesIDCacheElement is an item stored within a cache. type seriesIDCacheElement struct { - name []byte - key []byte - value []byte + name string + key string + value string SeriesIDSet *tsdb.SeriesIDSet }