mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/workingsetcache: remove data race when resetting c.misses
This commit is contained in:
parent
0adebae1f8
commit
48999e5396
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ func (c *Cache) Reset() {
|
|||
curr := c.curr.Load().(*fastcache.Cache)
|
||||
curr.Reset()
|
||||
|
||||
c.misses = 0
|
||||
atomic.StoreUint64(&c.misses, 0)
|
||||
}
|
||||
|
||||
// UpdateStats updates fcs with cache stats.
|
||||
|
|
Loading…
Reference in a new issue