mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
Recreate bucket metacache if corrupted (#10800)
If bucket metadata cannot be read, clean up existing and create a new.
This commit is contained in:
@@ -45,7 +45,7 @@ const metacacheManagerTransientBucket = "**transient**"
|
||||
// initManager will start async saving the cache.
|
||||
func (m *metacacheManager) initManager() {
|
||||
// Add a transient bucket.
|
||||
tb := newBucketMetacache(metacacheManagerTransientBucket)
|
||||
tb := newBucketMetacache(metacacheManagerTransientBucket, false)
|
||||
tb.transient = true
|
||||
m.buckets[metacacheManagerTransientBucket] = tb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user