Skip to content

Commit

Permalink
chunk: cleanup cache expire skip staging (#4434)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjp00556 authored Feb 29, 2024
1 parent f09a279 commit f8c988f
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 @@ -170,6 +170,9 @@ func (cache *cacheStore) cleanupExpire() {
if cnt > 1e3 {
break
}
if v.size < 0 {
continue // staging
}
if v.atime < cutoff {
deleted++
delete(cache.keys, k)
Expand Down

0 comments on commit f8c988f

Please sign in to comment.