Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD committed Dec 12, 2023
1 parent 20f0d23 commit 607f102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chunk/disk_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ func (cache *cacheStore) cleanupExpire() {
cache.m.cacheEvicts.Add(1)
}
}
cache.Unlock()
if len(todel) > 0 {
logger.Debugf("cleanup expired cache (%s): %d blocks (%d MB), expired %d blocks (%d MB)", cache.dir, len(cache.keys), cache.used>>20, len(todel), freed>>20)
}
cache.Unlock()
for _, k := range todel {
_ = os.Remove(cache.cachePath(cache.getPathFromKey(k)))
}
Expand Down

0 comments on commit 607f102

Please sign in to comment.