Merge pull request #11834 from influxdata/bj-tag-cache-string
Convert TagValueSeriesIDCache to use string fieldspull/11836/head
commit
af1df09450
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue