mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Metacache add abs entry limit (#11483)
Add an absolute limit to the number of metacaches for a bucket. Delete excess caches if they haven't been handed out in an hour.
This commit is contained in:
@@ -43,6 +43,7 @@ type metacacheManager struct {
|
||||
}
|
||||
|
||||
const metacacheManagerTransientBucket = "**transient**"
|
||||
const metacacheMaxEntries = 5000
|
||||
|
||||
// initManager will start async saving the cache.
|
||||
func (m *metacacheManager) initManager() {
|
||||
|
||||
Reference in New Issue
Block a user