Skip to content

Commit

Permalink
chunk/cache: disable refreshCacheKeys if interval < 0 (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD committed Oct 17, 2022
1 parent c3d803a commit 9af5a48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/chunk/disk_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ func (cache *cacheStore) checkFreeSpace() {
}

func (cache *cacheStore) refreshCacheKeys() {
if cache.scanInterval < 0 {
return
}
cache.scanCached()
if cache.scanInterval > 0 {
for {
Expand Down

0 comments on commit 9af5a48

Please sign in to comment.