From 7aadec8e3c42dcdcb660000e7bc970f9441594ad Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 20 Jun 2019 14:33:38 +0300 Subject: [PATCH] app/vmselect/promql: typo fix; updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/69 --- app/vmselect/promql/regexp_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/promql/regexp_cache.go b/app/vmselect/promql/regexp_cache.go index 4d0ff4d93..b2fd96b24 100644 --- a/app/vmselect/promql/regexp_cache.go +++ b/app/vmselect/promql/regexp_cache.go @@ -80,7 +80,7 @@ func (rc *regexpCache) Get(regexp string) *regexpCacheValue { rcv := rc.m[regexp] rc.mu.RUnlock() - if rc == nil { + if rcv == nil { atomic.AddUint64(&rc.misses, 1) } return rcv