Merge pull request #11834 from influxdata/bj-tag-cache-string

Convert TagValueSeriesIDCache to use string fields
pull/11836/head
Ben Johnson 2019-02-12 15:10:36 -07:00 committed by GitHub
commit af1df09450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -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
}